summaryrefslogtreecommitdiffstats
path: root/generic/tclAlloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclAlloc.c')
-rw-r--r--generic/tclAlloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclAlloc.c b/generic/tclAlloc.c
index 9dcb431..36ae5d4 100644
--- a/generic/tclAlloc.c
+++ b/generic/tclAlloc.c
@@ -255,7 +255,7 @@ TclpAlloc(
{
register union overhead *overPtr;
register size_t bucket;
- register unsigned amount;
+ register size_t amount;
struct block *bigBlockPtr = NULL;
if (!allocInit) {
@@ -603,7 +603,7 @@ TclpRealloc(
if (maxSize < numBytes) {
numBytes = maxSize;
}
- memcpy(newPtr, oldPtr, (size_t) numBytes);
+ memcpy(newPtr, oldPtr, numBytes);
TclpFree(oldPtr);
return newPtr;
}