Bug 520672: Use unsigned instead of signed char for static array in jpeg/jdmaster.c, to fix "overflow in implicit constant conversion" compile warning. r=bholley
authorDaniel Holbert <dholbert@cs.stanford.edu>
Mon, 05 Oct 2009 18:04:58 -0700
changeset 33483 dcd991f71c3fea3acfe538bee4821994471bd4ff
parent 33482 f6b3d9aaaa7fe2f276a2288a902240b2d234587c
child 33484 8fad77f5f828853cb1cae1860e9bf49388a4b5b4
push idunknown
push userunknown
push dateunknown
reviewersbholley
bugs520672
milestone1.9.3a1pre
Bug 520672: Use unsigned instead of signed char for static array in jpeg/jdmaster.c, to fix "overflow in implicit constant conversion" compile warning. r=bholley
jpeg/jdmaster.c
--- a/jpeg/jdmaster.c
+++ b/jpeg/jdmaster.c
@@ -12,17 +12,17 @@
  */
 
 #define JPEG_INTERNALS
 #include "jinclude.h"
 #include "jpeglib.h"
 
 /* Use static array */
 
-const char static_range_table[ (5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * SIZEOF(JSAMPLE) ]={
+const unsigned char static_range_table[ (5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * SIZEOF(JSAMPLE) ]={
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,