diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | generic/tclLink.c | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,8 @@ 2007-01-29 Don Porter <dgp@users.sourceforge.net> + * generic/tclLink.c: Broken linked float logic corrected. Thanks + to Andy Goth [Bug 1602538]. + * doc/fcopy.n: Typo fix. [Bug 1630627] 2007-01-28 Daniel Steffen <das@users.sourceforge.net> diff --git a/generic/tclLink.c b/generic/tclLink.c index 7bf4fd5..03a9249 100644 --- a/generic/tclLink.c +++ b/generic/tclLink.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: tclLink.c,v 1.17 2006/08/18 07:45:31 das Exp $ + * RCS: @(#) $Id: tclLink.c,v 1.18 2007/01/29 17:16:11 dgp Exp $ */ #include "tclInt.h" @@ -498,7 +498,7 @@ LinkTraceProc( case TCL_LINK_FLOAT: if (Tcl_GetDoubleFromObj(interp, valueObj, &valueDouble) != TCL_OK - || valueDouble < FLT_MIN || valueDouble > FLT_MAX) { + || valueDouble < -FLT_MAX || valueDouble > FLT_MAX) { Tcl_ObjSetVar2(interp, linkPtr->varName, NULL, ObjValue(linkPtr), TCL_GLOBAL_ONLY); return "variable must have float value"; |