summaryrefslogtreecommitdiffstats
path: root/generic/tclCompExpr.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclCompExpr.c')
-rw-r--r--generic/tclCompExpr.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c
index 17d7d8b..6e90bb6 100644
--- a/generic/tclCompExpr.c
+++ b/generic/tclCompExpr.c
@@ -762,14 +762,16 @@ ParseExpr(
switch (start[1]) {
case 'b':
Tcl_AppendToObj(post,
- " (invalid binary number?)", -1);
+ " (invalid binary number?)",
+ TCL_STRLEN);
parsePtr->errorType = TCL_PARSE_BAD_NUMBER;
errCode = "BADNUMBER";
subErrCode = "BINARY";
break;
case 'o':
Tcl_AppendToObj(post,
- " (invalid octal number?)", -1);
+ " (invalid octal number?)",
+ TCL_STRLEN);
parsePtr->errorType = TCL_PARSE_BAD_NUMBER;
errCode = "BADNUMBER";
subErrCode = "OCTAL";
@@ -777,7 +779,8 @@ ParseExpr(
default:
if (isdigit(UCHAR(start[1]))) {
Tcl_AppendToObj(post,
- " (invalid octal number?)", -1);
+ " (invalid octal number?)",
+ TCL_STRLEN);
parsePtr->errorType = TCL_PARSE_BAD_NUMBER;
errCode = "BADNUMBER";
subErrCode = "OCTAL";
@@ -1426,7 +1429,7 @@ ParseExpr(
*/
if (post != NULL) {
- Tcl_AppendToObj(msg, ";\n", -1);
+ Tcl_AppendToObj(msg, ";\n", TCL_STRLEN);
Tcl_AppendObjToObj(msg, post);
Tcl_DecrRefCount(post);
}