diff options
| author | dgp@users.sourceforge.net <dgp> | 2005-10-08 14:42:44 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2005-10-08 14:42:44 (GMT) |
| commit | 64b25366339b8dc67854f43d60ad6583dc5b529e (patch) | |
| tree | 7e3de1d0523d70328cfd81d9864b897058823d34 /generic/tclLink.c | |
| parent | 0338f802509b8504448b30fc548e55ce095702f3 (diff) | |
| download | tcl-64b25366339b8dc67854f43d60ad6583dc5b529e.zip tcl-64b25366339b8dc67854f43d60ad6583dc5b529e.tar.gz tcl-64b25366339b8dc67854f43d60ad6583dc5b529e.tar.bz2 | |
TIP#237 IMPLEMENTATION
[kennykb-numerics-branch] Resynchronized with the HEAD; at this
checkpoint [-rkennykb-numerics-branch-20051008], the HEAD and
kennykb-numerics-branch contain identical code.
Diffstat (limited to 'generic/tclLink.c')
| -rw-r--r-- | generic/tclLink.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/generic/tclLink.c b/generic/tclLink.c index b16a113..2ab72ff 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.12 2005/09/08 10:49:19 dkf Exp $ + * RCS: @(#) $Id: tclLink.c,v 1.13 2005/10/08 14:42:45 dgp Exp $ */ #include "tclInt.h" @@ -383,9 +383,16 @@ LinkTraceProc(clientData, interp, name1, name2, flags) case TCL_LINK_DOUBLE: if (Tcl_GetDoubleFromObj(NULL, valueObj, &linkPtr->lastValue.d) != TCL_OK) { +#ifdef ACCEPT_NAN + if (valueObj->typePtr != &tclDoubleType) { +#endif Tcl_ObjSetVar2(interp, linkPtr->varName, NULL, ObjValue(linkPtr), TCL_GLOBAL_ONLY); return "variable must have real value"; +#ifdef ACCEPT_NAN + } + linkPtr->lastValue.d = valueObj->internalRep.doubleValue; +#endif } *(double *)(linkPtr->addr) = linkPtr->lastValue.d; break; |
