summaryrefslogtreecommitdiffstats
path: root/generic/tclHash.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2017-11-08 02:50:28 (GMT)
committerdgp <dgp@users.sourceforge.net>2017-11-08 02:50:28 (GMT)
commitf31af075d052f3285352b8c4c10174baef2eee4a (patch)
treee338a1418096138962f8f49d1c7c04b55e29fbc3 /generic/tclHash.c
parentbe0c5786a08e4843d792d5321e8245e551126317 (diff)
downloadtcl-f31af075d052f3285352b8c4c10174baef2eee4a.zip
tcl-f31af075d052f3285352b8c4c10174baef2eee4a.tar.gz
tcl-f31af075d052f3285352b8c4c10174baef2eee4a.tar.bz2
compiler warning
Diffstat (limited to 'generic/tclHash.c')
-rw-r--r--generic/tclHash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclHash.c b/generic/tclHash.c
index b553c68..5d6ea86 100644
--- a/generic/tclHash.c
+++ b/generic/tclHash.c
@@ -1020,7 +1020,7 @@ RebuildTable(
const Tcl_HashKeyType *typePtr;
/* Avoid outgrowing capability of the memory allocators */
- if (oldSize > UINT_MAX / (4 * sizeof(Tcl_HashEntry *))) {
+ if (oldSize > (int)(UINT_MAX / (4 * sizeof(Tcl_HashEntry *)))) {
tablePtr->rebuildSize = INT_MAX;
return;
}