diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-08-16 13:31:51 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-08-16 13:31:51 (GMT) |
commit | 907e2d9a2d64d70bf11090c1404f4c2a033665cc (patch) | |
tree | 10fef8916f8c8669ce5e3e9dad5ab679a7afd436 /win/tkWinMenu.c | |
parent | b5ded31c01970fcfc89f40ec2f1ba09472ec0ff2 (diff) | |
parent | 31e3c7c6744ec46a8b36c6425b93c58bd5e70230 (diff) | |
download | tk-907e2d9a2d64d70bf11090c1404f4c2a033665cc.zip tk-907e2d9a2d64d70bf11090c1404f4c2a033665cc.tar.gz tk-907e2d9a2d64d70bf11090c1404f4c2a033665cc.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 62bbcc2..79642f5 100644 --- a/win/tkWinMenu.c +++ b/win/tkWinMenu.c @@ -436,7 +436,7 @@ TkpDestroyMenuEntry( Tcl_DoWhenIdle(ReconfigureWindowsMenu, (ClientData) menuPtr); } } - FreeID((WORD) (UINT) mePtr->platformEntryData); + FreeID((WORD) PTR2INT(mePtr->platformEntryData)); mePtr->platformEntryData = NULL; } @@ -625,7 +625,7 @@ ReconfigureWindowsMenu( flags |= MF_MENUBREAK; } - itemID = (UINT) mePtr->platformEntryData; + itemID = PTR2INT(mePtr->platformEntryData); if ((mePtr->type == CASCADE_ENTRY) && (mePtr->childMenuRefPtr != NULL) && (mePtr->childMenuRefPtr->menuPtr != NULL)) { @@ -645,7 +645,7 @@ ReconfigureWindowsMenu( * If the MF_POPUP flag is set, then the id is interpreted * as the handle of a submenu. */ - itemID = (UINT) childMenuHdl; + itemID = PTR2INT(childMenuHdl); } } if ((menuPtr->menuType == MENUBAR) @@ -855,7 +855,7 @@ TkpMenuNewEntry( Tcl_DoWhenIdle(ReconfigureWindowsMenu, (ClientData) menuPtr); } - mePtr->platformEntryData = (TkMenuPlatformEntryData) (UINT) commandID; + mePtr->platformEntryData = (TkMenuPlatformEntryData) INT2PTR(commandID); return TCL_OK; } |