diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-02-27 08:34:05 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-02-27 08:34:05 (GMT) |
commit | ebaa9730ff3fc6968559b80fb7135dee9576b93a (patch) | |
tree | 34dde540a1ed936003a721aec62cf6ede6e5bfa2 /generic/tclHash.c | |
parent | 2dbd064c021bd09cc58ddb3b984c51305e732453 (diff) | |
download | tcl-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.c | 4 |
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 *)); |