summaryrefslogtreecommitdiffstats
path: root/win/tkWinScrlbr.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/tkWinScrlbr.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/tkWinScrlbr.c')
-rw-r--r--win/tkWinScrlbr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinScrlbr.c b/win/tkWinScrlbr.c
index f5f691d..87edb75 100644
--- a/win/tkWinScrlbr.c
+++ b/win/tkWinScrlbr.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: tkWinScrlbr.c,v 1.22 2010/06/19 16:18:41 jenglish Exp $
+ * RCS: @(#) $Id: tkWinScrlbr.c,v 1.23 2010/11/29 09:07:13 nijtmans Exp $
*/
#include "tkWinInt.h"
@@ -248,7 +248,7 @@ CreateProc(
scrollPtr->lastVertical = scrollPtr->info.vertical;
scrollPtr->oldProc = (WNDPROC)SetWindowLongPtr(scrollPtr->hwnd,
- GWLP_WNDPROC, (INT_PTR) ScrollbarProc);
+ GWLP_WNDPROC, (LONG_PTR) ScrollbarProc);
window = Tk_AttachHWND(tkwin, scrollPtr->hwnd);
UpdateScrollbar(scrollPtr);
@@ -293,7 +293,7 @@ TkpDisplayScrollbar(
if (scrollPtr->lastVertical != scrollPtr->info.vertical) {
HWND hwnd = Tk_GetHWND(Tk_WindowId(tkwin));
- SetWindowLongPtr(hwnd, GWLP_WNDPROC, (INT_PTR) scrollPtr->oldProc);
+ SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) scrollPtr->oldProc);
DestroyWindow(hwnd);
CreateProc(tkwin, Tk_WindowId(Tk_Parent(tkwin)),