diff options
author | dgp <dgp@users.sourceforge.net> | 2005-09-15 16:40:02 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2005-09-15 16:40:02 (GMT) |
commit | dad41b847302dce4ebd5139c0568aad2ad7a0776 (patch) | |
tree | 238980bfb093b32ba311f36a2774bde6bba0c4ee /generic/tclExecute.c | |
parent | 75aee26af34aeea93c32910c88c0d5cef7077ff7 (diff) | |
download | tcl-dad41b847302dce4ebd5139c0568aad2ad7a0776.zip tcl-dad41b847302dce4ebd5139c0568aad2ad7a0776.tar.gz tcl-dad41b847302dce4ebd5139c0568aad2ad7a0776.tar.bz2 |
* generic/tclBasic.c: More callers of TclObjPrintf and
* generic/tclCkalloc.c: TclFormatToErrorInfo.
* generic/tclCmdMZ.c:
* generic/tclExecute.c:
* generic/tclIORChan.c:
* generic/tclMain.c:
* generic/tclProc.c:
* generic/tclTimer.c:
* generic/tclUtil.c:
* unix/tclUnixFCmd.c
* unix/configure: autoconf-2.59
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 52556fd..c7502f0 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.200 2005/09/14 21:32:17 dgp Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.201 2005/09/15 16:40:02 dgp Exp $ */ #include "tclInt.h" @@ -6094,11 +6094,12 @@ TclExprFloatError(interp, value) Tcl_SetErrorCode(interp, "ARITH", "OVERFLOW", s, (char *) NULL); } } else { - Tcl_Obj *objPtr = Tcl_GetObjResult(interp); + Tcl_Obj *objPtr = Tcl_NewObj(); TclObjPrintf(NULL, objPtr, "unknown floating-point error, errno = %d", errno); Tcl_SetErrorCode(interp, "ARITH", "UNKNOWN", Tcl_GetString(objPtr), (char *) NULL); + Tcl_SetObjResult(interp, objPtr); } } |