diff --git a/source/lib/LibMemory.h b/source/lib/LibMemory.h index 972e936..bef577c 100644 --- a/source/lib/LibMemory.h +++ b/source/lib/LibMemory.h @@ -83,9 +83,9 @@ static inline Void xFreeMem( Void *mem ) } template -Int getMem1D( T **array1D, int dim0 ) +Int getMem1D( T **array1D, Int dim0 ) { - if( ( *array1D = ( T* )mem_calloc( dim0, sizeof(T) ) ) == NULL ) + if( ( *array1D = ( T* )xCallocMem( dim0, sizeof(T) ) ) == NULL ) return 0; return ( sizeof(T*) + dim0 * sizeof(T) );