From: Arnaud Giersch Date: Tue, 21 Feb 2012 15:50:00 +0000 (+0100) Subject: Allow to use another base for parameter "modes" in parmap_bench. X-Git-Tag: exp_20120308~34^2~15 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9e27ad0e459a6ae084ae6f9c102060b9a0e4ad03 Allow to use another base for parameter "modes" in parmap_bench. --- diff --git a/testsuite/xbt/parmap_bench.c b/testsuite/xbt/parmap_bench.c index 112fbae788..f2e0c5e4f5 100644 --- a/testsuite/xbt/parmap_bench.c +++ b/testsuite/xbt/parmap_bench.c @@ -180,7 +180,7 @@ int main(int argc, char *argv[]) return EXIT_FAILURE; } if (argc == 3) - modes = atoi(argv[2]); + modes = strtol(argv[2], NULL, 0); printf("Parmap benchmark with %d workers (modes = %#x)...\n\n", nthreads, modes);