[PATCH 07/24] wmifs: Fix "overflow in implicit constant conversion" compiler warnings.

Doug Torrance <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
---
 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);
-- 
2.1.4


-- 
To unsubscribe, send mail to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.