[Pkg-wmaker-commits] [wmtime] 74/101: wmtime: Fix overflow warning; mask bitmap should be unsigned.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:59:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmtime.
commit 0a6851b4fb6ae7d79bbed6f92fd194f77cc7a39c
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Mon May 25 17:21:27 2015 -0500
wmtime: Fix overflow warning; mask bitmap should be unsigned.
---
wmtime-mask.xbm | 2 +-
wmtime.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/wmtime-mask.xbm b/wmtime-mask.xbm
index dd73c69..cf3b1ca 100644
--- a/wmtime-mask.xbm
+++ b/wmtime-mask.xbm
@@ -1,6 +1,6 @@
#define wmtime_mask_width 128
#define wmtime_mask_height 64
-static char wmtime_mask_bits[] = {
+static unsigned char wmtime_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,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
diff --git a/wmtime.c b/wmtime.c
index 14a0544..75c885c 100644
--- a/wmtime.c
+++ b/wmtime.c
@@ -350,7 +350,7 @@ void wmtime_routine(int argc, char **argv) {
}
draw_window:
- openXwindow(argc, argv, wmtime_master_xpm, wmtime_mask_bits, 128, 64);
+ openXwindow(argc, argv, wmtime_master_xpm, (char*)wmtime_mask_bits, 128, 64);
/* Mask out the right parts of the clock */
copyXPMArea(0, 0, 128, 64, 0, 98); /* Draw the borders */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmtime.git
More information about the Pkg-wmaker-commits
mailing list