summaryrefslogtreecommitdiffstats
path: root/win/tkWinPixmap.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-11-29 09:07:12 (GMT)
committernijtmans <nijtmans>2010-11-29 09:07:12 (GMT)
commit8ccebbf9fc50bab1c1a3fa148f9632f059296bd2 (patch)
treef4a05b05f4420db2757c9b6934a169d18c4d0bf0 /win/tkWinPixmap.c
parent13fd371fb175d2dc12a9ec83a2cd45f540086857 (diff)
downloadtk-8ccebbf9fc50bab1c1a3fa148f9632f059296bd2.zip
tk-8ccebbf9fc50bab1c1a3fa148f9632f059296bd2.tar.gz
tk-8ccebbf9fc50bab1c1a3fa148f9632f059296bd2.tar.bz2
Fix various 64-bit gcc(-4.5.2) warnings: cast from pointer to integer of different size
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 =