From 9e27ad0e459a6ae084ae6f9c102060b9a0e4ad03 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 21 Feb 2012 16:50:00 +0100 Subject: [PATCH] Allow to use another base for parameter "modes" in parmap_bench. --- testsuite/xbt/parmap_bench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1