diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-11 05:39:08 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-11 05:39:08 (GMT) |
commit | d73c6dbd81c0537e3d6df60dc145af1b6539d6d2 (patch) | |
tree | 21937654dd120ae841ab47a05d1d792b30ffc187 /win/tclWinConsole.c | |
parent | 36d06e1e0b240999e478c750f746a86dbd63caae (diff) | |
download | tcl-d73c6dbd81c0537e3d6df60dc145af1b6539d6d2.zip tcl-d73c6dbd81c0537e3d6df60dc145af1b6539d6d2.tar.gz tcl-d73c6dbd81c0537e3d6df60dc145af1b6539d6d2.tar.bz2 |
Eliminate many unnecessary type-casts, mostly (size_t) when value is already size_t or int
Diffstat (limited to 'win/tclWinConsole.c')
-rw-r--r-- | win/tclWinConsole.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c index 1293ebe..a223a1f 100644 --- a/win/tclWinConsole.c +++ b/win/tclWinConsole.c @@ -672,11 +672,11 @@ ConsoleInputProc( */ if (bufSize < (infoPtr->bytesRead - infoPtr->offset)) { - memcpy(buf, &infoPtr->buffer[infoPtr->offset], (size_t) bufSize); + memcpy(buf, &infoPtr->buffer[infoPtr->offset], bufSize); bytesRead = bufSize; infoPtr->offset += bufSize; } else { - memcpy(buf, &infoPtr->buffer[infoPtr->offset], (size_t) bufSize); + memcpy(buf, &infoPtr->buffer[infoPtr->offset], bufSize); bytesRead = infoPtr->bytesRead - infoPtr->offset; /* @@ -783,7 +783,7 @@ ConsoleOutputProc( infoPtr->writeBufLen = toWrite; infoPtr->writeBuf = ckalloc(toWrite); } - memcpy(infoPtr->writeBuf, buf, (size_t) toWrite); + memcpy(infoPtr->writeBuf, buf, toWrite); infoPtr->toWrite = toWrite; ResetEvent(threadInfo->readyEvent); TclPipeThreadSignal(&threadInfo->TI); |