]> granicus.if.org Git - graphviz/commitdiff
use unsigned char to shut up Sun's cc
authorellson <devnull@localhost>
Wed, 31 May 2006 12:01:57 +0000 (12:01 +0000)
committerellson <devnull@localhost>
Wed, 31 May 2006 12:01:57 +0000 (12:01 +0000)
lib/gvc/gvusershape.c

index 4d9861f5a3890b4d9fdeba6c0f8f242fd9b7e6fa..d9ee8a37d85ad6908b94421b343d681223814a1d 100644 (file)
@@ -141,12 +141,13 @@ static void bmp_size (usershape_t *us) {
 }
 
 static void jpeg_size (usershape_t *us) {
-    unsigned int marker, length, size_x, size_y, junk;
+    unsigned char marker;
+    unsigned int length, size_x, size_y, junk;
 
     /* These are the markers that follow 0xff in the file.
      * Other markers implicitly have a 2-byte length field that follows.
      */
-    static char standalone_markers [] = {
+    static unsigned char standalone_markers [] = {
         0x01,                       /* Temporary */
         0xd0, 0xd1, 0xd2, 0xd3,     /* Reset */
             0xd4, 0xd5, 0xd6,