Unsigned variables should be used for right-shifting bitmasks if the have
their MSB bit set.
This commit is contained in:
@@ -787,7 +787,7 @@ inline void
|
|||||||
sed1330_set_pixel(PrivateData * p, int x, int y, int value)
|
sed1330_set_pixel(PrivateData * p, int x, int y, int value)
|
||||||
{
|
{
|
||||||
unsigned int bytepos;
|
unsigned int bytepos;
|
||||||
char bitmask;
|
unsigned char bitmask;
|
||||||
|
|
||||||
bytepos = y * p->bytesperline + x / p->cellwidth;
|
bytepos = y * p->bytesperline + x / p->cellwidth;
|
||||||
bitmask = 0x80 >> (x % p->cellwidth);
|
bitmask = 0x80 >> (x % p->cellwidth);
|
||||||
|
|||||||
Reference in New Issue
Block a user