Changeset f4a6101


Ignore:
Timestamp:
Jan 26, 2018, 6:08:22 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
5f20b30
Parents:
2b9ddf2
Message:

inserted cast for random seed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/stdlib.c

    r2b9ddf2 rf4a6101  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // algorithm.c --
     7// stdlib.c --
    88//
    99// Author           : Peter A. Buhr
    1010// Created On       : Thu Jan 28 17:10:29 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jan  2 12:20:32 2018
    13 // Update Count     : 441
     12// Last Modified On : Wed Jan  3 08:29:29 2018
     13// Update Count     : 444
    1414//
    1515
     
    2424#include <complex.h>                                                                    // _Complex_I
    2525#include <assert.h>
     26
     27//---------------------------------------
    2628
    2729// resize, non-array types
     
    257259//---------------------------------------
    258260
    259 extern "C" { void srandom( unsigned int seed ) { srand48( seed ); } } // override C version
     261extern "C" { void srandom( unsigned int seed ) { srand48( (long int)seed ); } } // override C version
    260262char random( void ) { return (unsigned long int)random(); }
    261263char random( char u ) { return random( (unsigned long int)u ); }
Note: See TracChangeset for help on using the changeset viewer.