]> Savannah Git Hosting - gnulib.git/commitdiff
crypto tests: pacify GCC
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 May 2018 18:08:08 +0000 (11:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 May 2018 18:11:17 +0000 (11:11 -0700)
* tests/test-digest.h (test_digest_on_files):
Don’t assume digest size fits in int (!).

ChangeLog
tests/test-digest.h

index bdf18d44f147e029ad9d5045e8d24c5e4906bdec..58fa4a648f25e435f4cfea668708075e64bfa6bd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,10 @@
 
 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
 
+       crypto tests: pacify GCC
+       * tests/test-digest.h (test_digest_on_files):
+       Don’t assume digest size fits in int (!).
+
        af_alg: minor style improvements
        * lib/af_alg.c (afalg_stream): Prefer C99 style
        decl-after-statement, since we’re already assuming C99.  Clarify
index 39a1d2e17886bb097c8d244be2641c9d5bda5522..e80e2cf3ba388f1485d28204ee2c5f391e7efec9 100644 (file)
@@ -94,7 +94,7 @@ test_digest_on_files (int (*streamfunc) (FILE *, void *),
           }
         if (memcmp (digest, expected, digest_size) != 0)
           {
-            int i;
+            size_t i;
             fprintf (stderr, "%s produced wrong result.\n", streamfunc_name);
             fprintf (stderr, "Expected: ");
             for (i = 0; i < digest_size; i++)