From: Paul Eggert Date: Wed, 13 Oct 2010 07:03:41 +0000 (+0200) Subject: tests: fix rand-isaac test X-Git-Tag: v8.6~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9300fffcb54006bf471d96d70cf98081152c6fb1;p=thirdparty%2Fcoreutils.git tests: fix rand-isaac test * gl/tests/test-rand-isaac.c (main): Fix swapped arguments to strtol. --- diff --git a/gl/tests/test-rand-isaac.c b/gl/tests/test-rand-isaac.c index 03b004c4fa..90acb4accb 100644 --- a/gl/tests/test-rand-isaac.c +++ b/gl/tests/test-rand-isaac.c @@ -594,7 +594,7 @@ main (int argc, char **argv) /* If invoked with a positive argument, run a benchmark; if with a negative, run a do-nothing benchmark. */ - for (iterations = argc <= 1 ? 0 : strtol (argv[1], 10, NULL); + for (iterations = argc <= 1 ? 0 : strtol (argv[1], NULL, 10); iterations != 0; iterations += (iterations < 0 ? 1 : -1)) if (0 <= iterations)