shithub: jbig2

Download patch

ref: 229557eb1f5fefdb69c63d38140edbbf5c7b6b6b
parent: 834b69f7023a5a3ea9c6e853cde1b67cbce29589
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Wed Aug 14 06:31:08 EDT 2002

Declare the test vector (strings) as char instead of unsigned char. We already cast to (uint8_t*) before passing to the hash routines, and the declaration caused a signed/unsigned warning in strlen() on some systems. Thanks to Tom Kacvinsky for this one.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@196 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/sha1.c
+++ b/sha1.c
@@ -308,7 +308,7 @@
 
 #ifdef TEST
 
-static unsigned char *test_data[] = {
+static char *test_data[] = {
     "abc",
     "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
     "A million repetitions of 'a'"};