]> granicus.if.org Git - libexpat/commitdiff
Fix tests for both x86 and non-x86. (#109)
authorJoe Orton <jorton@redhat.com>
Thu, 3 Aug 2017 08:42:41 +0000 (09:42 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Thu, 3 Aug 2017 19:35:03 +0000 (21:35 +0200)
expat/tests/runtests.c

index aa95fd377b82d1ce20b60eeb7a2d9dbd23f5f2e6..237de6e2fa8acfbaa7be2b8af5b4c47e811f7de2 100644 (file)
@@ -5671,7 +5671,7 @@ static int XMLCALL
 prefix_converter(void *UNUSED_P(data), const char *s)
 {
     /* If the first byte is 0xff, raise an error */
-    if (s[0] == -1)
+    if (s[0] == (char)-1)
         return -1;
     /* Just add the low bits of the first byte to the second */
     return (s[1] + (s[0] & 0x7f)) & 0x01ff;