]> granicus.if.org Git - file/commitdiff
Cast a comparison to signed char. Still a bit shakey...
authorIan Darwin <ian@darwinsys.com>
Thu, 21 May 1992 16:23:12 +0000 (16:23 +0000)
committerIan Darwin <ian@darwinsys.com>
Thu, 21 May 1992 16:23:12 +0000 (16:23 +0000)
src/compress.c

index 0b9220973d33f5647824795d926eca8729f0aa70..058803e23fdb944d65d5abf6ad0c244ab96a6486 100644 (file)
@@ -15,7 +15,7 @@ unsigned char *p;
 int *b;
 {
 
-       if (*p != '\037' || *(p+1) != '\235')
+       if (*p != '\037' || *(/*signed*/ char*)(p+1) != '\235')
                return 0;       /* not compress()ed */
 
        *b = *(p+2) & 0x80;