From b45c5a7cf04b9f304cc4223dab3b98dda6874527 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Thu, 11 Jul 2013 03:20:18 +0100 Subject: 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. --- src/shuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shuf.c') 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; } -- cgit v1.2.3-54-g00ecf