summaryrefslogtreecommitdiffstats
path: root/xlib
diff options
context:
space:
mode:
authordas <das@noemail.net>2006-07-20 06:24:15 (GMT)
committerdas <das@noemail.net>2006-07-20 06:24:15 (GMT)
commit491bdc9c7741b37735e7a75c4c81f1b4476aa1bf (patch)
tree956bfb461f8842d898de94327db9578248dbf9cf /xlib
parentab89de069fe2484ad69ef9404267cca1e53576d6 (diff)
downloadtk-491bdc9c7741b37735e7a75c4c81f1b4476aa1bf.zip
tk-491bdc9c7741b37735e7a75c4c81f1b4476aa1bf.tar.gz
tk-491bdc9c7741b37735e7a75c4c81f1b4476aa1bf.tar.bz2
* generic/tkImgGIF.c (ReadImage):
* macosx/tkMacOSXCursor.c (TkMacOSXCursor): * macosx/tkMacOSXDebug.c (TkMacOSXGetNamedDebugSymbol): * macosx/tkMacOSXInit.c (Map): * xlib/xgc.c (XCreateGC): fix signed-with-unsigned comparison and other warnings from gcc4 -Wextra. FossilOrigin-Name: 694dad4d22e029cbeca839f6be045a29d673e3d8
Diffstat (limited to 'xlib')
-rw-r--r--xlib/xgc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlib/xgc.c b/xlib/xgc.c
index af7e045..3ac74e5 100644
--- a/xlib/xgc.c
+++ b/xlib/xgc.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: xgc.c,v 1.8 2005/11/27 02:36:16 das Exp $
+ * RCS: @(#) $Id: xgc.c,v 1.9 2006/07/20 06:24:16 das Exp $
*/
#include <tkInt.h>
@@ -64,7 +64,7 @@ XCreateGC(display, d, mask, values)
}
gp->function = (mask & GCFunction) ?values->function :GXcopy;
- gp->plane_mask = (mask & GCPlaneMask) ?values->plane_mask :~0;
+ gp->plane_mask = (mask & GCPlaneMask) ?values->plane_mask :(unsigned long )(~0);
gp->foreground = (mask & GCForeground) ?values->foreground :0;
gp->background = (mask & GCBackground) ?values->background :0xffffff;
gp->line_width = (mask & GCLineWidth) ?values->line_width :1;