diff options
author | nijtmans <nijtmans@noemail.net> | 2010-11-29 09:07:11 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2010-11-29 09:07:11 (GMT) |
commit | 644ab7ea30c557ba41593733b0743409b24007eb (patch) | |
tree | f4a05b05f4420db2757c9b6934a169d18c4d0bf0 /win/tkWinScrlbr.c | |
parent | 714bf81bd8d49578e1bdd65e9a3456d034581d1a (diff) | |
download | tk-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/tkWinScrlbr.c')
-rw-r--r-- | win/tkWinScrlbr.c | 6 |
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)), |