Changeset a9fc180
- Timestamp:
- Jan 31, 2017, 11:25:10 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 064cb18, 41a7137, dd0b961
- Parents:
- a91dcc2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/stdlib.c
ra91dcc2 ra9fc180 29 29 forall( dtype T | sized(T) ) T * malloc( void ) { 30 30 //printf( "malloc1\n" ); 31 return (T *) malloc(sizeof(T) );31 return (T *)(void*)malloc( (size_t)sizeof(T) ); 32 32 } // malloc 33 33 forall( dtype T | sized(T) ) T * malloc( char fill ) { 34 34 //printf( "malloc3\n" ); 35 T * ptr = (T *) malloc(sizeof(T) );35 T * ptr = (T *)(void*)malloc( (size_t)sizeof(T) ); 36 36 return memset( ptr, (int)fill, sizeof(T) ); 37 37 } // malloc
Note: See TracChangeset
for help on using the changeset viewer.