Mercurial > gnulib
changeset 39329:ee78086c564a
crypto tests: pacify GCC
* tests/test-digest.h (test_digest_on_files):
Don’t assume digest size fits in int (!).
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 05 May 2018 11:08:08 -0700 |
parents | 7559412d22f9 |
children | 2d99ceb73d4b |
files | ChangeLog tests/test-digest.h |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat May 05 11:08:08 2018 -0700 +++ b/ChangeLog Sat May 05 11:08:08 2018 -0700 @@ -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
--- a/tests/test-digest.h Sat May 05 11:08:08 2018 -0700 +++ b/tests/test-digest.h Sat May 05 11:08:08 2018 -0700 @@ -94,7 +94,7 @@ } 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++)