From 27bc26465a1f4124e5f8a29044b58448d646c0e0 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sat, 5 Apr 2014 14:32:52 +0100 Subject: [PATCH] Improve source/lib/LibMemory.h --- source/lib/LibMemory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) );