summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-11-27 15:10:43 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-11-27 15:10:43 (GMT)
commitd8d2992ff2e190e6b68d55ae255aaea89183265b (patch)
tree1e351bfad963aeb5b4ed1b2e12cc85990cf42780 /generic/tclExecute.c
parentd3304f5ae40f3b69cef0bceb90f7803e817db094 (diff)
downloadtcl-d8d2992ff2e190e6b68d55ae255aaea89183265b.zip
tcl-d8d2992ff2e190e6b68d55ae255aaea89183265b.tar.gz
tcl-d8d2992ff2e190e6b68d55ae255aaea89183265b.tar.bz2
* generic/tclExecute.c (TclIncrObj): Correct failure to detect
floating-point increment values. Thanks to William Coleda [Bug 1602991]
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index c322fac..c3808f5 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.252 2006/11/17 21:22:18 dgp Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.253 2006/11/27 15:10:45 dgp Exp $
*/
#include "tclInt.h"
@@ -1080,7 +1080,7 @@ TclIncrObj(
/* Produce error message (reparse?!) */
return Tcl_GetIntFromObj(interp, valuePtr, &type1);
}
- if ((type1 == TCL_NUMBER_DOUBLE) || (type1 == TCL_NUMBER_NAN)) {
+ if ((type2 == TCL_NUMBER_DOUBLE) || (type2 == TCL_NUMBER_NAN)) {
/* Produce error message (reparse?!) */
Tcl_GetIntFromObj(interp, incrPtr, &type1);
Tcl_AddErrorInfo(interp, "\n (reading increment)");