summaryrefslogtreecommitdiffstats
path: root/win/tkWinButton.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/tkWinButton.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/tkWinButton.c')
-rw-r--r--win/tkWinButton.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinButton.c b/win/tkWinButton.c
index 3c89ebc..4fabf5b 100644
--- a/win/tkWinButton.c
+++ b/win/tkWinButton.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: tkWinButton.c,v 1.41 2010/04/29 15:28:04 nijtmans Exp $
+ * RCS: @(#) $Id: tkWinButton.c,v 1.42 2010/11/29 09:07:12 nijtmans Exp $
*/
#define OEMRESOURCE
@@ -260,7 +260,7 @@ CreateProc(
SetWindowPos(butPtr->hwnd, HWND_TOP, 0, 0, 0, 0,
SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
butPtr->oldProc = (WNDPROC)SetWindowLongPtr(butPtr->hwnd, GWLP_WNDPROC,
- (INT_PTR) ButtonProc);
+ (LONG_PTR) ButtonProc);
window = Tk_AttachHWND(tkwin, butPtr->hwnd);
return window;
@@ -290,7 +290,7 @@ TkpDestroyButton(
HWND hwnd = winButPtr->hwnd;
if (hwnd) {
- SetWindowLongPtr(hwnd, GWLP_WNDPROC, (INT_PTR) winButPtr->oldProc);
+ SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) winButPtr->oldProc);
}
}