wmcalc: Fix -Woverflow compiler warnings.
This commit is contained in:
parent
544c36b79c
commit
c3bef2f247
|
@ -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,
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue