X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e5b4da866899d8df510207c8e35722eee9ce48d8..4feef0a31a4bfb0b073402109bfbb016cb9bc60d:/testsuite/xbt/heap_bench.c diff --git a/testsuite/xbt/heap_bench.c b/testsuite/xbt/heap_bench.c index a18402bf46..ccab791587 100644 --- a/testsuite/xbt/heap_bench.c +++ b/testsuite/xbt/heap_bench.c @@ -18,6 +18,8 @@ #include "xbt/heap.h" #include "gras/virtu.h" /* time manipulation in bench */ +#include "xbt/sysdep.h" /* calloc, printf */ + #define MAX_TEST 1000000 #ifdef __BORLANDC__ @@ -48,7 +50,7 @@ int compare_double(const void *a, const void *b) void test_heap_validity(int size) { xbt_heap_t heap = xbt_heap_new(size, NULL); - double *tab = (double*)calloc(size,sizeof(double)); + double *tab = xbt_new0(double,size); int i;