summaryrefslogtreecommitdiffstats
path: root/generic/tclAlloc.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-16 11:17:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-16 11:17:54 (GMT)
commit5534478fa10a116663a3b05f32a119bb07aa9ed2 (patch)
treeb647149ae02bb75b31d2ac1b36cbd503bf42855c /generic/tclAlloc.c
parentde0ff2272ed178a1fba979435ced086cecb968fa (diff)
parent7dec4a7fc516a50bac5f55f6752b646254ba1082 (diff)
downloadtcl-5534478fa10a116663a3b05f32a119bb07aa9ed2.zip
tcl-5534478fa10a116663a3b05f32a119bb07aa9ed2.tar.gz
tcl-5534478fa10a116663a3b05f32a119bb07aa9ed2.tar.bz2
re-base "novem-more-memory-API" to trunk. TIP not submitted yet, but upcoming.
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 64df1a2..63b1ac5 100644
--- a/generic/tclAlloc.c
+++ b/generic/tclAlloc.c
@@ -275,7 +275,7 @@ TclpAlloc(
if (numBytes >= MAXMALLOC - OVERHEAD) {
if (numBytes <= UINT_MAX - OVERHEAD -sizeof(struct block)) {
bigBlockPtr = (struct block *) TclpSysAlloc((unsigned)
- (sizeof(struct block) + OVERHEAD + numBytes), 0);
+ (sizeof(struct block) + OVERHEAD + numBytes));
}
if (bigBlockPtr == NULL) {
Tcl_MutexUnlock(allocMutexPtr);
@@ -406,7 +406,7 @@ MoreCore(
ASSERT(numBlocks*size == amount);
blockPtr = (struct block *) TclpSysAlloc(
- (sizeof(struct block) + amount), 1);
+ (sizeof(struct block) + amount));
/* no more room! */
if (blockPtr == NULL) {
return;