diff options
Diffstat (limited to 'generic/tclAlloc.c')
-rw-r--r-- | generic/tclAlloc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclAlloc.c b/generic/tclAlloc.c index 91335fb..5c97f9c 100644 --- a/generic/tclAlloc.c +++ b/generic/tclAlloc.c @@ -274,7 +274,7 @@ TclpAlloc( if (numBytes >= MAXMALLOC - OVERHEAD) { if (numBytes <= UINT_MAX - OVERHEAD -sizeof(struct block)) { - bigBlockPtr = (struct block *) TclpSysAlloc((unsigned) + bigBlockPtr = TclpSysAlloc((unsigned) (sizeof(struct block) + OVERHEAD + numBytes)); } if (bigBlockPtr == NULL) { @@ -405,8 +405,7 @@ MoreCore( numBlocks = amount / size; ASSERT(numBlocks*size == amount); - blockPtr = (struct block *) TclpSysAlloc( - (sizeof(struct block) + amount)); + blockPtr = TclpSysAlloc(sizeof(struct block) + amount); /* no more room! */ if (blockPtr == NULL) { return; |