diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-08-16 12:03:25 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-08-16 12:03:25 (GMT) |
commit | 63d6ebbdc5448ceb5e98cb1ca0b7fadb1ebe9350 (patch) | |
tree | 380c8174739958989e5022ea5c613c74b7747df6 /win/tclWinChan.c | |
parent | 6203c60601717753524d662bbc900adfa3e86ddf (diff) | |
parent | 96af7fcd51a853aac2eb09b6de444a9789e04638 (diff) | |
download | tcl-63d6ebbdc5448ceb5e98cb1ca0b7fadb1ebe9350.zip tcl-63d6ebbdc5448ceb5e98cb1ca0b7fadb1ebe9350.tar.gz tcl-63d6ebbdc5448ceb5e98cb1ca0b7fadb1ebe9350.tar.bz2 |
[Bug 3388350] mingw64 compiler warnings
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r-- | win/tclWinChan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c index b35c380..0f17834 100644 --- a/win/tclWinChan.c +++ b/win/tclWinChan.c @@ -1224,7 +1224,7 @@ TclpGetDefaultStdChannel( HANDLE handle; int mode = -1; char *bufMode = NULL; - DWORD handleId = (DWORD)INVALID_HANDLE_VALUE; + DWORD handleId = (DWORD)-1; /* Standard handle to retrieve. */ switch (type) { @@ -1337,7 +1337,7 @@ TclWinOpenFileChannel( infoPtr->flags = appendMode; infoPtr->handle = handle; infoPtr->dirty = 0; - wsprintfA(channelName, "file%lx", (int) infoPtr); + wsprintfA(channelName, "file%lx", PTR2INT(infoPtr)); infoPtr->channel = Tcl_CreateChannel(&fileChannelType, channelName, (ClientData) infoPtr, permissions); |