diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-08-16 13:03:43 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-08-16 13:03:43 (GMT) |
commit | 3876ba4df3e26ded567937787afa2068b9815626 (patch) | |
tree | c4452046a4a872fb20c9437f5719b664baca41d7 /win/tkWinMenu.c | |
parent | af28c015d3494e872c4094934f33251157662310 (diff) | |
parent | 664a327665c85de251423f7a679879e8382041c8 (diff) | |
download | tk-3876ba4df3e26ded567937787afa2068b9815626.zip tk-3876ba4df3e26ded567937787afa2068b9815626.tar.gz tk-3876ba4df3e26ded567937787afa2068b9815626.tar.bz2 |
[Bug 3388350] mingw64 compiler warnings
Diffstat (limited to 'win/tkWinMenu.c')
-rw-r--r-- | win/tkWinMenu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c index 686c47d..3e9abe8 100644 --- a/win/tkWinMenu.c +++ b/win/tkWinMenu.c @@ -440,7 +440,7 @@ TkpDestroyMenuEntry( Tcl_DoWhenIdle(ReconfigureWindowsMenu, (ClientData) menuPtr); } } - FreeID((WORD) (UINT) mePtr->platformEntryData); + FreeID((WORD) PTR2UINT(mePtr->platformEntryData)); mePtr->platformEntryData = NULL; } @@ -629,7 +629,7 @@ ReconfigureWindowsMenu( flags |= MF_MENUBREAK; } - itemID = (UINT) mePtr->platformEntryData; + itemID = PTR2UINT(mePtr->platformEntryData); if ((mePtr->type == CASCADE_ENTRY) && (mePtr->childMenuRefPtr != NULL) && (mePtr->childMenuRefPtr->menuPtr != NULL)) { @@ -649,7 +649,7 @@ ReconfigureWindowsMenu( * If the MF_POPUP flag is set, then the id is interpreted * as the handle of a submenu. */ - itemID = (UINT) childMenuHdl; + itemID = PTR2UINT(childMenuHdl); } } if ((menuPtr->menuType == MENUBAR) @@ -860,7 +860,7 @@ TkpMenuNewEntry( Tcl_DoWhenIdle(ReconfigureWindowsMenu, (ClientData) menuPtr); } - mePtr->platformEntryData = (TkMenuPlatformEntryData) (UINT) commandID; + mePtr->platformEntryData = (TkMenuPlatformEntryData) UINT2PTR(commandID); return TCL_OK; } |