[PATCH 09/23] wmsun: Fix "overflow in implicit constant conversion" compiler warning.

Doug Torrance <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
---
 wmsun/wmSun.c        | 2 +-
 wmsun/wmSun_mask.xbm | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/wmsun/wmSun.c b/wmsun/wmSun.c
index 4e7094a..882bfca 100644
--- a/wmsun/wmSun.c
+++ b/wmsun/wmSun.c
@@ -147,7 +147,7 @@ int main(int argc, char *argv[]) {
    
 
    
-    openXwindow(argc, argv, wmSun_master, wmSun_mask_bits, wmSun_mask_width, wmSun_mask_height);
+    openXwindow(argc, argv, wmSun_master, (char *)wmSun_mask_bits, wmSun_mask_width, wmSun_mask_height);
 
 
 
diff --git a/wmsun/wmSun_mask.xbm b/wmsun/wmSun_mask.xbm
index f334241..0ebec55 100644
--- a/wmsun/wmSun_mask.xbm
+++ b/wmsun/wmSun_mask.xbm
@@ -1,6 +1,6 @@
 #define wmSun_mask_width 64
 #define wmSun_mask_height 64
-static char wmSun_mask_bits[] = {
+static unsigned char wmSun_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,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0xf0,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0xf0,0xff,0xff,0xff,0xff,
-- 
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.