[Pkg-wmaker-commits] [wmcalc] 35/65: wmcalc: Fix -Woverflow compiler warnings.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sun Aug 23 13:54:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmcalc.

commit f8222ebd96ac7f6e4f57068f20ca5ff759e22361
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sat Jan 10 10:59:53 2015 -0600

    wmcalc: Fix -Woverflow compiler warnings.
---
 mask.xbm | 2 +-
 wmcalc.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mask.xbm b/mask.xbm
index 85290d7..828bbf2 100644
--- a/mask.xbm
+++ b/mask.xbm
@@ -1,7 +1,7 @@
 #define mask_width 64
 #define mask_height 64
 
-static char mask_bits[] = {
+static unsigned char mask_bits[] = {
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f,
  0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f,
diff --git a/wmcalc.c b/wmcalc.c
index 2e6a8ba..38d0dbe 100644
--- a/wmcalc.c
+++ b/wmcalc.c
@@ -204,7 +204,7 @@ int main( int argc, char **argv ) {
 
   if ( ( pixmask = XCreateBitmapFromData(display,
 					 win,
-					 mask_bits,
+					 (char *)mask_bits,
 					 mask_width,
 					 mask_height) )  == 0 ) {
     error_handler(ERR_X_CREATE_BITMAP, NULL);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcalc.git



More information about the Pkg-wmaker-commits mailing list