summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-03-24 10:30:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-03-24 10:30:56 (GMT)
commit8a2c820213312ae39df29ae3f0f3d7ef83e6d4a3 (patch)
tree4048009aa7134f488430dfd31bb6023ac67b629b /generic/tclTest.c
parentf55296bdf01aad11441825c162f074824f3031b5 (diff)
parentab08379d1c20b87f25e17de1c9e8bac2b0360e47 (diff)
downloadtcl-8a2c820213312ae39df29ae3f0f3d7ef83e6d4a3.zip
tcl-8a2c820213312ae39df29ae3f0f3d7ef83e6d4a3.tar.gz
tcl-8a2c820213312ae39df29ae3f0f3d7ef83e6d4a3.tar.bz2
Merge trunk
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r--generic/tclTest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c
index a9dc1ca..84d4ea1 100644
--- a/generic/tclTest.c
+++ b/generic/tclTest.c
@@ -3405,7 +3405,7 @@ TestMathFunc2(
resultPtr->type = TCL_WIDE_INT;
resultPtr->wideValue = ((w0 > w1)? w0 : w1);
} else {
- Tcl_SetResult(interp, (char *)"T3: wrong type for arg 2", TCL_STATIC);
+ Tcl_AppendResult(interp, "T3: wrong type for arg 2", NULL);
result = TCL_ERROR;
}
} else if (args[0].type == TCL_DOUBLE) {
@@ -3427,7 +3427,7 @@ TestMathFunc2(
resultPtr->type = TCL_DOUBLE;
resultPtr->doubleValue = ((d0 > d1)? d0 : d1);
} else {
- Tcl_SetResult(interp, (char *)"T3: wrong type for arg 2", TCL_STATIC);
+ Tcl_AppendResult(interp, "T3: wrong type for arg 2", NULL);
result = TCL_ERROR;
}
} else if (args[0].type == TCL_WIDE_INT) {
@@ -3450,11 +3450,11 @@ TestMathFunc2(
resultPtr->type = TCL_WIDE_INT;
resultPtr->wideValue = ((w0 > w1)? w0 : w1);
} else {
- Tcl_SetResult(interp, (char *)"T3: wrong type for arg 2", TCL_STATIC);
+ Tcl_AppendResult(interp, "T3: wrong type for arg 2", NULL);
result = TCL_ERROR;
}
} else {
- Tcl_SetResult(interp, (char *)"T3: wrong type for arg 1", TCL_STATIC);
+ Tcl_AppendResult(interp, "T3: wrong type for arg 1", NULL);
result = TCL_ERROR;
}
return result;