svn merge -r 21041:21301 https://svn.blender.org/svnroot/bf-blender/branches/blender2...
[blender.git] / source / blender / blenlib / intern / psfont.c
index 39d38e4cf3af1f8b234e14ecbece852370441378..269e674a62f2c52fd578375848f1c81989822489 100644 (file)
@@ -837,7 +837,7 @@ static int decodetype1(PackedFile * pf, char *outname)
                while(newfgets(oneline, LINELEN, pf)) {
                        hptr = (char *)oneline;
                        while(*hptr) {
-                               if(hextab[*hptr] != NOTHEX)
+                               if(hextab[(int)*hptr] != NOTHEX)
                                        hexdat[hexbytes++] = *hptr;
                                hptr++;
                        }
@@ -853,7 +853,7 @@ static int decodetype1(PackedFile * pf, char *outname)
                bptr = bindat;
                c = datbytes;
                while(c--) {
-                       *bptr++  = (hextab[hptr[0]]<<4)+hextab[hptr[1]];
+                       *bptr++  = (hextab[(int)hptr[0]]<<4)+hextab[(int)hptr[1]];
                        hptr += 2;
                }