summaryrefslogtreecommitdiffstats
path: root/generic/tclAlloc.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-21 21:32:38 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-21 21:32:38 (GMT)
commit817a97238eb4d10f5fbb213987776efb3f86adc9 (patch)
tree92011770b39e676310245589395f0e0169aa3623 /generic/tclAlloc.c
parent7398a025d45df93243a3f96d1fddf17a86acd707 (diff)
downloadtcl-817a97238eb4d10f5fbb213987776efb3f86adc9.zip
tcl-817a97238eb4d10f5fbb213987776efb3f86adc9.tar.gz
tcl-817a97238eb4d10f5fbb213987776efb3f86adc9.tar.bz2
Formatting, PTR2INT range improvements, and remove some macro's only used on Cygwin, which are no longer necessary
Diffstat (limited to 'generic/tclAlloc.c')
-rw-r--r--generic/tclAlloc.c5
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;