summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-11 05:39:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-11 05:39:08 (GMT)
commit4e0bc593116403aff19c85dd97514e36ed2a0e82 (patch)
tree21937654dd120ae841ab47a05d1d792b30ffc187 /macosx
parent943be309a5c088d67a1748eccf9f5c50a803bace (diff)
downloadtcl-4e0bc593116403aff19c85dd97514e36ed2a0e82.zip
tcl-4e0bc593116403aff19c85dd97514e36ed2a0e82.tar.gz
tcl-4e0bc593116403aff19c85dd97514e36ed2a0e82.tar.bz2
Eliminate many unnecessary type-casts, mostly (size_t) when value is already size_t or int
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tclMacOSXFCmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tclMacOSXFCmd.c b/macosx/tclMacOSXFCmd.c
index e462e5e..53b01e0 100644
--- a/macosx/tclMacOSXFCmd.c
+++ b/macosx/tclMacOSXFCmd.c
@@ -654,7 +654,7 @@ SetOSTypeFromAny(
OSType osType;
char bytes[4] = {'\0','\0','\0','\0'};
- memcpy(bytes, Tcl_DStringValue(&ds), (size_t)Tcl_DStringLength(&ds));
+ memcpy(bytes, Tcl_DStringValue(&ds), Tcl_DStringLength(&ds));
osType = (OSType) bytes[0] << 24 |
(OSType) bytes[1] << 16 |
(OSType) bytes[2] << 8 |