[Pkg-wmaker-commits] [wmmoonclock] 12/15: wmmoonclock: Use unsigned char in mask bitmap to avoid overflow warnings.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 14 23:32:57 UTC 2017
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch upstream
in repository wmmoonclock.
commit ed1efb01002f2afe8ad2887275b7cc1aeadbc46d
Author: Doug Torrance <dtorrance at piedmont.edu>
Date: Mon Aug 14 18:49:27 2017 -0400
wmmoonclock: Use unsigned char in mask bitmap to avoid overflow warnings.
---
src/wmMoonClock.c | 4 ++--
src/wmMoonClock_mask.xbm | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/wmMoonClock.c b/src/wmMoonClock.c
index e5316d0..d7bae22 100644
--- a/src/wmMoonClock.c
+++ b/src/wmMoonClock.c
@@ -180,9 +180,9 @@ int main(int argc, char *argv[]) {
initXwindow(argc, argv);
if ((DisplayDepth <= 8)||UseLowColorPixmap)
- openXwindow(argc, argv, wmMoonClock_masterLow, wmMoonClock_mask_bits, wmMoonClock_mask_width, wmMoonClock_mask_height, BackColor, LabelColor, DataColor);
+ openXwindow(argc, argv, wmMoonClock_masterLow, (char *)wmMoonClock_mask_bits, wmMoonClock_mask_width, wmMoonClock_mask_height, BackColor, LabelColor, DataColor);
else
- openXwindow(argc, argv, wmMoonClock_master, wmMoonClock_mask_bits, wmMoonClock_mask_width, wmMoonClock_mask_height, BackColor, LabelColor, DataColor);
+ openXwindow(argc, argv, wmMoonClock_master, (char *)wmMoonClock_mask_bits, wmMoonClock_mask_width, wmMoonClock_mask_height, BackColor, LabelColor, DataColor);
diff --git a/src/wmMoonClock_mask.xbm b/src/wmMoonClock_mask.xbm
index 1b0181f..1a4efc5 100644
--- a/src/wmMoonClock_mask.xbm
+++ b/src/wmMoonClock_mask.xbm
@@ -1,6 +1,6 @@
#define wmMoonClock_mask_width 64
#define wmMoonClock_mask_height 64
-static char wmMoonClock_mask_bits[] = {
+static unsigned char wmMoonClock_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,0x0f,0xf0,0xff,0xff,0xff,0xff,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmmoonclock.git
More information about the Pkg-wmaker-commits
mailing list