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 /unix/tclUnixFile.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 'unix/tclUnixFile.c')
-rw-r--r-- | unix/tclUnixFile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c index f70ce6a..35046a5 100644 --- a/unix/tclUnixFile.c +++ b/unix/tclUnixFile.c @@ -1116,7 +1116,7 @@ TclNativeCreateNativeRep( } Tcl_DecrRefCount(validPathPtr); nativePathPtr = ckalloc(len); - memcpy(nativePathPtr, Tcl_DStringValue(&ds), (size_t) len); + memcpy(nativePathPtr, Tcl_DStringValue(&ds), len); Tcl_DStringFree(&ds); return nativePathPtr; |