From b919e2ddad0f1cfa2ef0dc54ba052669f7025b95 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sun, 14 Jun 2015 17:04:42 -0500 Subject: [PATCH] wmsun: Fix "overflow in implicit constant conversion" compiler warning. --- 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,