summaryrefslogtreecommitdiffstats
path: root/generic/tclCompExpr.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-03-22 09:07:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-03-22 09:07:44 (GMT)
commitfd553241ab33882835ecf6065d61b775c9e2f1b1 (patch)
treed531ee2c448630f1c7fcb51dba9ce451bb68a542 /generic/tclCompExpr.c
parent72376991f5c43b445f266ab25f73c1c41d6393f0 (diff)
downloadtcl-fd553241ab33882835ecf6065d61b775c9e2f1b1.zip
tcl-fd553241ab33882835ecf6065d61b775c9e2f1b1.tar.gz
tcl-fd553241ab33882835ecf6065d61b775c9e2f1b1.tar.bz2
(cherry-pick): Fix signed-unsigned-compare warning (reported by François Vogel on Windows, but gcc can trigger it as well)
Diffstat (limited to 'generic/tclCompExpr.c')
-rw-r--r--generic/tclCompExpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c
index 50edbec..2ffcc68 100644
--- a/generic/tclCompExpr.c
+++ b/generic/tclCompExpr.c
@@ -666,7 +666,7 @@ ParseExpr(
OpNode *newPtr = NULL;
do {
- if (size <= UINT_MAX/sizeof(OpNode)) {
+ if (size <= (int)(UINT_MAX/sizeof(OpNode))) {
newPtr = attemptckrealloc(nodes, size * sizeof(OpNode));
}
} while ((newPtr == NULL)