diff options
author | Pádraig Brady <P@draigBrady.com> | 2013-07-11 03:20:18 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-07-11 03:24:06 +0100 |
commit | b45c5a7cf04b9f304cc4223dab3b98dda6874527 (patch) | |
tree | 7816529cbf529e05faa7b30de2e1b522354c69d9 /src | |
parent | 3a84293987bd21a92071a3d1c605ec9a2b3af1b4 (diff) | |
download | coreutils-b45c5a7cf04b9f304cc4223dab3b98dda6874527.tar.xz |
build: fix a build warning on 32 bit systems in shuf.c
Prompted by the continuous integration build failure at:
http://hydra.nixos.org/build/5508873
* src/shuf.c (write_random_numbers): Convert to an int type
that matches the prinft format spec.
Diffstat (limited to 'src')
-rw-r--r-- | src/shuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shuf.c b/src/shuf.c index a8c1d8530..f7fc9369c 100644 --- a/src/shuf.c +++ b/src/shuf.c @@ -350,7 +350,7 @@ write_random_numbers (struct randint_source *s, size_t count, for (i = 0; i < count; i++) { - randint j = lo_input + randint_choose (s, range); + unsigned long int j = lo_input + randint_choose (s, range); if (printf ("%lu%c", j, eolbyte) < 0) return -1; } |