Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill all the autogenerated I've found. Feel free to kill the remaining ones: buildbot...
[simgrid.git] / testsuite / xbt / heap_bench.c
index a18402b..ccab791 100644 (file)
@@ -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;