commit b45c5a7cf04b9f304cc4223dab3b98dda6874527
Author: Pádraig Brady <[email protected]>
Date:   Thu Jul 11 03:20:18 2013 +0100

    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.

diff --git a/src/shuf.c b/src/shuf.c
index a8c1d85..f7fc936 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;
     }

Reply via email to