summaryrefslogtreecommitdiffstats
path: root/win/tclWinSerial.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-08-16 12:03:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-08-16 12:03:25 (GMT)
commitc40f358d218fd889c73f460de21aeafe79039ddd (patch)
tree380c8174739958989e5022ea5c613c74b7747df6 /win/tclWinSerial.c
parent47d5c6556036a6b82202105616f7b702fb13e866 (diff)
parentea9c5d778a6e1dffabfb1138daa94f9ef796dabc (diff)
downloadtcl-c40f358d218fd889c73f460de21aeafe79039ddd.zip
tcl-c40f358d218fd889c73f460de21aeafe79039ddd.tar.gz
tcl-c40f358d218fd889c73f460de21aeafe79039ddd.tar.bz2
[Bug 3388350] mingw64 compiler warnings
Diffstat (limited to 'win/tclWinSerial.c')
-rw-r--r--win/tclWinSerial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c
index bb26e23..fb092ff 100644
--- a/win/tclWinSerial.c
+++ b/win/tclWinSerial.c
@@ -1499,7 +1499,7 @@ TclWinOpenSerialChannel(
* are shared between multiple channels (stdin/stdout).
*/
- wsprintfA(channelName, "file%lx", (int) infoPtr);
+ wsprintfA(channelName, "file%lx", PTR2INT(infoPtr));
infoPtr->channel = Tcl_CreateChannel(&serialChannelType, channelName,
(ClientData) infoPtr, permissions);