X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b4b1b2e016adf9c6145c19a8571c9994d7d627cf..3295ad8b7b7dc2f2a5d7b695860e60ff09e69ea2:/teshsuite/xbt/mallocator/mallocator_test.c diff --git a/teshsuite/xbt/mallocator/mallocator_test.c b/teshsuite/xbt/mallocator/mallocator_test.c index 58166bffc5..6eda006947 100644 --- a/teshsuite/xbt/mallocator/mallocator_test.c +++ b/teshsuite/xbt/mallocator/mallocator_test.c @@ -27,7 +27,7 @@ static void pprint_elems(xbt_dynar_t elems) { element_t elem; printf("Elems:"); xbt_dynar_foreach(elems, iter, elem) { - printf(" (%d,%ld)", elem->value, base_mallocator-elem); + printf(" (%d,%d)", elem->value, (int)(base_mallocator-elem)/(int)sizeof(int)); } printf("\n"); }