summaryrefslogtreecommitdiffstats
path: root/generic/tclInterp.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-03-04 13:15:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-03-04 13:15:08 (GMT)
commit59cd185389899d1a0c9ac1c1eee90a23cae887e2 (patch)
tree08684f5a71ff0e8362c7b62b36ad271f4838d119 /generic/tclInterp.c
parentb918dbb354ee3c3ed92052d1d13d7656dce925ea (diff)
downloadtcl-59cd185389899d1a0c9ac1c1eee90a23cae887e2.zip
tcl-59cd185389899d1a0c9ac1c1eee90a23cae887e2.tar.gz
tcl-59cd185389899d1a0c9ac1c1eee90a23cae887e2.tar.bz2
(cherry-pick): Fix gcc 5.3 warning: In function ‘NRInterpCmd’: tclInterp.c:726:5: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow]
if ((i + 2) < objc) { Remove some excessive spacing
Diffstat (limited to 'generic/tclInterp.c')
-rw-r--r--generic/tclInterp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclInterp.c b/generic/tclInterp.c
index 5c94461..cd0dc18 100644
--- a/generic/tclInterp.c
+++ b/generic/tclInterp.c
@@ -723,7 +723,7 @@ NRInterpCmd(
}
endOfForLoop:
- if ((i + 2) < objc) {
+ if (i < objc - 2) {
Tcl_WrongNumArgs(interp, 2, objv,
"?-unwind? ?--? ?path? ?result?");
return TCL_ERROR;