summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-05-05 11:08:08 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-05-05 11:11:17 -0700
commit7d2ab8a495fdfc30c33ea8bd886d69c5daa739ee (patch)
treedc2a6e4e11ef8f62da82507db0d69a4ae0c20688 /tests
parent3929fb2098d350e73c9556f59c18d74cd45b0547 (diff)
downloadgnulib-7d2ab8a495fdfc30c33ea8bd886d69c5daa739ee.tar.gz
crypto tests: pacify GCC
* tests/test-digest.h (test_digest_on_files): Don’t assume digest size fits in int (!).
Diffstat (limited to 'tests')
-rw-r--r--tests/test-digest.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-digest.h b/tests/test-digest.h
index 39a1d2e178..e80e2cf3ba 100644
--- a/tests/test-digest.h
+++ b/tests/test-digest.h
@@ -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++)