Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Usage of xbt_new0 instead calloc
[simgrid.git] / testsuite / xbt / heap_bench.c
index a18402bf46bc984820d7fd7a15c3055fadca23b6..cfeff7ddf1d70ddabdf2c26d74213310feafc7c1 100644 (file)
@@ -48,7 +48,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);
 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;
 
 
   int i;