wmcalc: Fix -Woverflow compiler warnings.

This commit is contained in:
Doug Torrance 2015-01-10 10:59:53 -06:00 committed by Carlos R. Mafra
parent 544c36b79c
commit c3bef2f247
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
#define mask_width 64 #define mask_width 64
#define mask_height 64 #define mask_height 64
static char mask_bits[] = { static unsigned char mask_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f,
0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f,

View file

@ -204,7 +204,7 @@ int main( int argc, char **argv ) {
if ( ( pixmask = XCreateBitmapFromData(display, if ( ( pixmask = XCreateBitmapFromData(display,
win, win,
mask_bits, (char *)mask_bits,
mask_width, mask_width,
mask_height) ) == 0 ) { mask_height) ) == 0 ) {
error_handler(ERR_X_CREATE_BITMAP, NULL); error_handler(ERR_X_CREATE_BITMAP, NULL);