From d8d2992ff2e190e6b68d55ae255aaea89183265b Mon Sep 17 00:00:00 2001 From: dgp Date: Mon, 27 Nov 2006 15:10:43 +0000 Subject: * generic/tclExecute.c (TclIncrObj): Correct failure to detect floating-point increment values. Thanks to William Coleda [Bug 1602991] --- ChangeLog | 5 +++++ generic/tclExecute.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7ff29b2..497ebee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-11-27 Don Porter + + * generic/tclExecute.c (TclIncrObj): Correct failure to detect + floating-point increment values. Thanks to William Coleda [Bug 1602991] + 2006-11-26 Donal K. Fellows * tests/mathop.test, doc/mathop.n: More bits and pieces of the TIP#174 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)"); -- cgit v0.12