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)
commit5743a71270096ed595e6208040c547b84006d1b0 (patch)
treed531ee2c448630f1c7fcb51dba9ce451bb68a542 /generic/tclCompExpr.c
parent40986d0eb9b2abc7fcdfecd71609df01902941b6 (diff)
downloadtcl-5743a71270096ed595e6208040c547b84006d1b0.zip
tcl-5743a71270096ed595e6208040c547b84006d1b0.tar.gz
tcl-5743a71270096ed595e6208040c547b84006d1b0.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)