Unsigned variables should be used for right-shifting bitmasks if the have

their MSB bit set.
This commit is contained in:
mmdolze
2011-02-10 22:55:45 +00:00
parent 2b925d21d6
commit baae2e1958
+1 -1
View File
@@ -787,7 +787,7 @@ inline void
sed1330_set_pixel(PrivateData * p, int x, int y, int value)
{
unsigned int bytepos;
char bitmask;
unsigned char bitmask;
bytepos = y * p->bytesperline + x / p->cellwidth;
bitmask = 0x80 >> (x % p->cellwidth);