From 7f51139e3d27166a80151f2c150f84fbc3ee28b2 Mon Sep 17 00:00:00 2001 From: dgp Date: Mon, 29 Jan 2007 17:16:10 +0000 Subject: * generic/tclLink.c: Broken linked float logic corrected. Thanks to Andy Goth [Bug 1602538]. --- ChangeLog | 3 +++ generic/tclLink.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3ab26e5..4f07ccc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-01-29 Don Porter + * 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 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"; -- cgit v0.12