[Pkg-wmaker-commits] [wmbubble] 45/207: Add some explicit casts to get rid of warnings.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:18:00 UTC 2015


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

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

commit 5b8dd1b6091642fd5549605d115a6e2a4c5fa1fc
Author: Robert Jacobs <rnjacobs at mit.edu>
Date:   Fri Jul 29 20:56:04 2011 -0700

    Add some explicit casts to get rid of warnings.
---
 wmx11pixmap.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/wmx11pixmap.c b/wmx11pixmap.c
index 9205146..6430526 100644
--- a/wmx11pixmap.c
+++ b/wmx11pixmap.c
@@ -29,9 +29,9 @@ static int flush_expose(Window w) {
 }
 
 void RGBtoXIm(const unsigned char * from, XImage * ximout) {
-	unsigned long * p32 = ximout->data;
-	unsigned short * p16 = ximout->data;
-	unsigned char * p8 = ximout->data;
+	unsigned long * p32 = (unsigned long *)ximout->data;
+	unsigned short * p16 = (unsigned short *)ximout->data;
+	unsigned char * p8 = (unsigned char *)ximout->data;
 	unsigned long pxl;
 	int i, yy;
 	/* violatin' the abstractions! */

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



More information about the Pkg-wmaker-commits mailing list