summaryrefslogtreecommitdiffstats
path: root/generic/tclHash.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-02-27 08:34:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-02-27 08:34:05 (GMT)
commitebaa9730ff3fc6968559b80fb7135dee9576b93a (patch)
tree34dde540a1ed936003a721aec62cf6ede6e5bfa2 /generic/tclHash.c
parent2dbd064c021bd09cc58ddb3b984c51305e732453 (diff)
downloadtcl-ebaa9730ff3fc6968559b80fb7135dee9576b93a.zip
tcl-ebaa9730ff3fc6968559b80fb7135dee9576b93a.tar.gz
tcl-ebaa9730ff3fc6968559b80fb7135dee9576b93a.tar.bz2
More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) and (unsigned) type-casts, which don't make sense any more.
Diffstat (limited to 'generic/tclHash.c')
-rw-r--r--generic/tclHash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclHash.c b/generic/tclHash.c
index 32c9aec..f7f9b32 100644
--- a/generic/tclHash.c
+++ b/generic/tclHash.c
@@ -1015,8 +1015,8 @@ RebuildTable(
tablePtr->numBuckets *= 4;
if (typePtr->flags & TCL_HASH_KEY_SYSTEM_HASH) {
- tablePtr->buckets = (Tcl_HashEntry **) TclpSysAlloc((unsigned)
- (tablePtr->numBuckets * sizeof(Tcl_HashEntry *)), 0);
+ tablePtr->buckets = (Tcl_HashEntry **) TclpSysAlloc(
+ tablePtr->numBuckets * sizeof(Tcl_HashEntry *), 0);
} else {
tablePtr->buckets =
ckalloc(tablePtr->numBuckets * sizeof(Tcl_HashEntry *));