projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61b7789
)
tests: fix rand-isaac test
author
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 13 Oct 2010 07:03:41 +0000
(09:03 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Wed, 13 Oct 2010 07:03:41 +0000
(09:03 +0200)
* gl/tests/test-rand-isaac.c (main): Fix swapped arguments to strtol.
gl/tests/test-rand-isaac.c
patch
|
blob
|
history
diff --git
a/gl/tests/test-rand-isaac.c
b/gl/tests/test-rand-isaac.c
index
03b004c
..
90acb4a
100644
(file)
--- 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)