A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Usage of xbt_new0 instead calloc
[simgrid.git]
/
testsuite
/
xbt
/
heap_bench.c
diff --git
a/testsuite/xbt/heap_bench.c
b/testsuite/xbt/heap_bench.c
index
a18402b
..
cfeff7d
100644
(file)
--- a/
testsuite/xbt/heap_bench.c
+++ b/
testsuite/xbt/heap_bench.c
@@
-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);
- double *tab =
(double*)calloc(size,sizeof(double)
);
+ double *tab =
xbt_new0(double,size
);
int i;