Changeset dd0b961


Ignore:
Timestamp:
Feb 1, 2017, 10:27:33 AM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
ffc3b26
Parents:
6dc78de (diff), a9fc180 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/stdlib.c

    r6dc78de rdd0b961  
    2929forall( dtype T | sized(T) ) T * malloc( void ) {
    3030        //printf( "malloc1\n" );
    31     return (T *)malloc( sizeof(T) );
     31    return (T *)(void*)malloc( (size_t)sizeof(T) );
    3232} // malloc
    3333forall( dtype T | sized(T) ) T * malloc( char fill ) {
    3434        //printf( "malloc3\n" );
    35         T * ptr = (T *)malloc( sizeof(T) );
     35        T * ptr = (T *)(void*)malloc( (size_t)sizeof(T) );
    3636    return memset( ptr, (int)fill, sizeof(T) );
    3737} // malloc
Note: See TracChangeset for help on using the changeset viewer.