summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2011-08-16 13:17:18 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2011-08-16 13:17:18 (GMT)
commitc40e1317b9407ba0e0a940faf569ff94ad826975 (patch)
tree0607ae69049fd86da0a97cf3db38e66e43855ade /win
parent1cbc00da49645eb4db275f8c8a59abc20b7e7abf (diff)
downloadtk-c40e1317b9407ba0e0a940faf569ff94ad826975.zip
tk-c40e1317b9407ba0e0a940faf569ff94ad826975.tar.gz
tk-c40e1317b9407ba0e0a940faf569ff94ad826975.tar.bz2
[Bug 3388350] mingw64 compiler warnings
FossilOrigin-Name: 49d005d8b613402128363545aeab8b12970992f0
Diffstat (limited to 'win')
-rw-r--r--win/tkWinMenu.c8
-rw-r--r--win/tkWinWm.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c
index 3e9abe8..5ad29e1 100644
--- a/win/tkWinMenu.c
+++ b/win/tkWinMenu.c
@@ -440,7 +440,7 @@ TkpDestroyMenuEntry(
Tcl_DoWhenIdle(ReconfigureWindowsMenu, (ClientData) menuPtr);
}
}
- FreeID((WORD) PTR2UINT(mePtr->platformEntryData));
+ FreeID((WORD) PTR2INT(mePtr->platformEntryData));
mePtr->platformEntryData = NULL;
}
@@ -629,7 +629,7 @@ ReconfigureWindowsMenu(
flags |= MF_MENUBREAK;
}
- itemID = PTR2UINT(mePtr->platformEntryData);
+ itemID = PTR2INT(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 = PTR2UINT(childMenuHdl);
+ itemID = PTR2INT(childMenuHdl);
}
}
if ((menuPtr->menuType == MENUBAR)
@@ -860,7 +860,7 @@ TkpMenuNewEntry(
Tcl_DoWhenIdle(ReconfigureWindowsMenu, (ClientData) menuPtr);
}
- mePtr->platformEntryData = (TkMenuPlatformEntryData) UINT2PTR(commandID);
+ mePtr->platformEntryData = (TkMenuPlatformEntryData) INT2PTR(commandID);
return TCL_OK;
}
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 23f496a..2df9b2e 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -3755,7 +3755,7 @@ WmFrameCmd(
if (hwnd == NULL) {
hwnd = Tk_GetHWND(Tk_WindowId((Tk_Window) winPtr));
}
- sprintf(buf, "0x%x", PTR2UINT(hwnd));
+ sprintf(buf, "0x%x", PTR2INT(hwnd));
Tcl_SetResult(interp, buf, TCL_VOLATILE);
return TCL_OK;
}