diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2010-10-13 09:03:41 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-10-13 09:03:41 +0200 |
commit | 9300fffcb54006bf471d96d70cf98081152c6fb1 (patch) | |
tree | 9af33d8a974f9fa1ce159a4becb28ecc47c8f649 /gl | |
parent | 61b77891c2d9af299063850a0c4d1d721340cfff (diff) | |
download | coreutils-9300fffcb54006bf471d96d70cf98081152c6fb1.tar.xz |
tests: fix rand-isaac test
* gl/tests/test-rand-isaac.c (main): Fix swapped arguments to strtol.
Diffstat (limited to 'gl')
-rw-r--r-- | gl/tests/test-rand-isaac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gl/tests/test-rand-isaac.c b/gl/tests/test-rand-isaac.c index 03b004c4f..90acb4acc 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) |