diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-07 18:14:39 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-07 18:14:39 (GMT) |
| commit | 82acd6a35a2efe65efe21a1ee63710ee8a7af8ce (patch) | |
| tree | 3532e3b31a3f14f668ebdecbacd4071abe96c5cc /win/tclWinChan.c | |
| parent | 4df874dd7fcd7292ca7110d27e0d26ad8b551360 (diff) | |
| parent | 5cf1eed9106acd1a6e751b414506b0e38f6a79a7 (diff) | |
| download | tcl-82acd6a35a2efe65efe21a1ee63710ee8a7af8ce.zip tcl-82acd6a35a2efe65efe21a1ee63710ee8a7af8ce.tar.gz tcl-82acd6a35a2efe65efe21a1ee63710ee8a7af8ce.tar.bz2 | |
Merge 8.6
Diffstat (limited to 'win/tclWinChan.c')
| -rw-r--r-- | win/tclWinChan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c index 166636c..f0ee718 100644 --- a/win/tclWinChan.c +++ b/win/tclWinChan.c @@ -700,7 +700,7 @@ FileInputProc( if (ReadFile(infoPtr->handle, (LPVOID) buf, (DWORD) bufSize, &bytesRead, (LPOVERLAPPED) NULL) != FALSE) { - return bytesRead; + return (int)bytesRead; } Tcl_WinConvertError(GetLastError()); @@ -757,7 +757,7 @@ FileOutputProc( return -1; } infoPtr->dirty = 1; - return bytesWritten; + return (int)bytesWritten; } /* @@ -1572,7 +1572,7 @@ NativeIsComPort( const WCHAR *nativePath) /* Path of file to access, native encoding. */ { const WCHAR *p = (const WCHAR *) nativePath; - int i, len = wcslen(p); + size_t i, len = wcslen(p); /* * 1. Look for com[1-9]:? |
