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 /generic/tclExecute.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 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index dd82f95..aacf565 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -2838,7 +2838,7 @@ TEBCresume( for (; currPtr <= &OBJ_AT_TOS; currPtr++) { bytes = TclGetStringFromObj(*currPtr, &length); if (bytes != NULL) { - memcpy(p, bytes, (size_t) length); + memcpy(p, bytes, length); p += length; } } @@ -2873,7 +2873,7 @@ TEBCresume( for (; currPtr <= &OBJ_AT_TOS; currPtr++) { if ((*currPtr)->bytes != tclEmptyStringRep) { bytes = (char *) Tcl_GetByteArrayFromObj(*currPtr,&length); - memcpy(p, bytes, (size_t) length); + memcpy(p, bytes, length); p += length; } } |