diff options
author | dgp <dgp@users.sourceforge.net> | 2007-08-23 17:20:05 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-08-23 17:20:05 (GMT) |
commit | d27177f503461d6e868ebc79d00179424f51836f (patch) | |
tree | fc4b6a205fc204a6389aaaa5c1e70e1aaa737f2c /generic | |
parent | 7c455b1f18ed783206997f7a7e9a76ffc85d5c73 (diff) | |
download | tcl-d27177f503461d6e868ebc79d00179424f51836f.zip tcl-d27177f503461d6e868ebc79d00179424f51836f.tar.gz tcl-d27177f503461d6e868ebc79d00179424f51836f.tar.bz2 |
* generic/tclCompExpr.c: Suppress the attempt to convert to
numeric when pre-compiling a constant expresion indicates an error.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCompExpr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c index b7e3404..74e5528 100644 --- a/generic/tclCompExpr.c +++ b/generic/tclCompExpr.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCompExpr.c,v 1.78 2007/08/22 14:04:16 dgp Exp $ + * RCS: @(#) $Id: tclCompExpr.c,v 1.79 2007/08/23 17:20:07 dgp Exp $ */ #include "tclInt.h" @@ -2307,7 +2307,6 @@ CompileExprTree( Tcl_InterpState save = Tcl_SaveInterpState(interp, TCL_OK); if (ExecConstantExprTree(interp, nodes, next, litObjvPtr) == TCL_OK) { - convert = 0; TclEmitPush(TclAddLiteralObj(envPtr, Tcl_GetObjResult(interp), NULL), envPtr); } else { @@ -2331,6 +2330,7 @@ CompileExprTree( TclStackFree(interp, parsePtr); } Tcl_RestoreInterpState(interp, save); + convert = 0; } else { nodePtr = nodes + next; } |