summaryrefslogtreecommitdiffstats
path: root/generic/tclHash.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2017-11-08 02:53:57 (GMT)
committerdgp <dgp@users.sourceforge.net>2017-11-08 02:53:57 (GMT)
commitb8bf04f5ecdb9b86bdd9622a08ef4cfebf99b5dc (patch)
treee520d741d156aca5270b6b29dba930b2201fcd0c /generic/tclHash.c
parentf74bde3e62a0e7b36227e064d0463424b5d9bbab (diff)
parentf31af075d052f3285352b8c4c10174baef2eee4a (diff)
downloadtcl-b8bf04f5ecdb9b86bdd9622a08ef4cfebf99b5dc.zip
tcl-b8bf04f5ecdb9b86bdd9622a08ef4cfebf99b5dc.tar.gz
tcl-b8bf04f5ecdb9b86bdd9622a08ef4cfebf99b5dc.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 4fdd673..7e8961d 100644
--- a/generic/tclHash.c
+++ b/generic/tclHash.c
@@ -1021,7 +1021,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;
}