summaryrefslogtreecommitdiffstats
path: root/generic/tclAlloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclAlloc.c')
-rw-r--r--generic/tclAlloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclAlloc.c b/generic/tclAlloc.c
index 9dcb431..f8bc2f7 100644
--- a/generic/tclAlloc.c
+++ b/generic/tclAlloc.c
@@ -603,7 +603,7 @@ TclpRealloc(
if (maxSize < numBytes) {
numBytes = maxSize;
}
- memcpy(newPtr, oldPtr, (size_t) numBytes);
+ memcpy(newPtr, oldPtr, numBytes);
TclpFree(oldPtr);
return newPtr;
}