summaryrefslogtreecommitdiffstats
path: root/win/tkWinPixmap.c
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2010-11-29 09:07:11 (GMT)
committernijtmans <nijtmans@noemail.net>2010-11-29 09:07:11 (GMT)
commit644ab7ea30c557ba41593733b0743409b24007eb (patch)
treef4a05b05f4420db2757c9b6934a169d18c4d0bf0 /win/tkWinPixmap.c
parent714bf81bd8d49578e1bdd65e9a3456d034581d1a (diff)
downloadtk-644ab7ea30c557ba41593733b0743409b24007eb.zip
tk-644ab7ea30c557ba41593733b0743409b24007eb.tar.gz
tk-644ab7ea30c557ba41593733b0743409b24007eb.tar.bz2
Fix various 64-bit gcc(-4.5.2) warnings: cast from pointer to integer of different size
FossilOrigin-Name: c6ea063c82eed28c54d2acd2d4dc1bad3c45d004
Diffstat (limited to 'win/tkWinPixmap.c')
-rw-r--r--win/tkWinPixmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinPixmap.c b/win/tkWinPixmap.c
index 60ce7c2..3827b3b 100644
--- a/win/tkWinPixmap.c
+++ b/win/tkWinPixmap.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: tkWinPixmap.c,v 1.12 2010/10/06 14:33:29 nijtmans Exp $
+ * RCS: @(#) $Id: tkWinPixmap.c,v 1.13 2010/11/29 09:07:13 nijtmans Exp $
*/
#include "tkWinInt.h"
@@ -61,7 +61,7 @@ Tk_GetPixmap(
screen = &display->screens[0];
planes = 1;
if (depth == screen->root_depth) {
- planes = (int) screen->ext_data;
+ planes = PTR2INT(screen->ext_data);
depth /= planes;
}
newTwdPtr->bitmap.handle =