summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-07-02 20:58:07 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-07-02 20:58:07 (GMT)
commite18619f8e98dd48417c66e66c7446da3c75fd8ae (patch)
tree6e8850c1bb92005de9a50a632ade71efad93e049 /generic
parentf31937b3ca5d5eb6727a876261984d3d684c2144 (diff)
downloadtcl-e18619f8e98dd48417c66e66c7446da3c75fd8ae.zip
tcl-e18619f8e98dd48417c66e66c7446da3c75fd8ae.tar.gz
tcl-e18619f8e98dd48417c66e66c7446da3c75fd8ae.tar.bz2
* generic/tclExecute.c (IllegalExprOperandType): [Bug 3024379]: Made
sure that errors caused by an argument to an operator being outside the domain of the operator all result in ::errorCode being ARITH DOMAIN and not NONE.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclExecute.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index cf26e87..41ea4f9 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -13,7 +13,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.369.2.13 2010/02/02 20:51:47 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.369.2.14 2010/07/02 20:58:07 dkf Exp $
*/
#include "tclInt.h"
@@ -7701,6 +7701,7 @@ IllegalExprOperandType(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"can't use %s as operand of \"%s\"", description, operator));
+ Tcl_SetErrorCode(interp, "ARITH", "DOMAIN", description, NULL);
}
/*