From c7834d29fdc534e4204fa23d478f977406213d6f Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Wed, 27 May 2015 17:33:16 -0500 Subject: [PATCH] wmifs: Fix "overflow in implicit constant conversion" compiler warnings. --- wmifs/wmifs-mask.xbm | 2 +- wmifs/wmifs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wmifs/wmifs-mask.xbm b/wmifs/wmifs-mask.xbm index 8599f49..9b0c27e 100644 --- a/wmifs/wmifs-mask.xbm +++ b/wmifs/wmifs-mask.xbm @@ -1,6 +1,6 @@ #define wmifs_mask_width 64 #define wmifs_mask_height 64 -static char wmifs_mask_bits[] = { +static unsigned char wmifs_mask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, diff --git a/wmifs/wmifs.c b/wmifs/wmifs.c index 9c56f63..0bb0e89 100644 --- a/wmifs/wmifs.c +++ b/wmifs/wmifs.c @@ -442,7 +442,7 @@ void wmifs_routine(int argc, char **argv) parse_rcfile("/etc/wmifsrc.fixed", wmifs_keys); - openXwindow(argc, argv, wmifs_master_xpm, wmifs_mask_bits, wmifs_mask_width, wmifs_mask_height); + openXwindow(argc, argv, wmifs_master_xpm, (char*)wmifs_mask_bits, wmifs_mask_width, wmifs_mask_height); /* > Button */ AddMouseRegion(0, 5, 5, 35, 15);