summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-02-06 21:20:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-02-06 21:20:00 (GMT)
commitcb2f9cccfbc8007a93a1010bbabe4614939b94a2 (patch)
tree4ed530aa1e22b15e16d2ee4df6473338fec4407f /generic/tclBasic.c
parent346aa04836d20ec950e8f1a1f322c008c42c081f (diff)
downloadtcl-cb2f9cccfbc8007a93a1010bbabe4614939b94a2.zip
tcl-cb2f9cccfbc8007a93a1010bbabe4614939b94a2.tar.gz
tcl-cb2f9cccfbc8007a93a1010bbabe4614939b94a2.tar.bz2
Some more complient API changes
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 42a1ccf..716b054 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -4537,7 +4537,7 @@ Tcl_EvalEx(
Tcl_Interp *interp, /* Interpreter in which to evaluate the
* script. Also used for error reporting. */
const char *script, /* First character of script to evaluate. */
- int numBytes, /* Number of bytes in script. If < 0, the
+ size_t numBytes, /* Number of bytes in script. If (size_t)-1, the
* script consists of all bytes up to the
* first null character. */
int flags) /* Collection of OR-ed bits that control the
@@ -4552,7 +4552,7 @@ TclEvalEx(
Tcl_Interp *interp, /* Interpreter in which to evaluate the
* script. Also used for error reporting. */
const char *script, /* First character of script to evaluate. */
- int numBytes, /* Number of bytes in script. If < 0, the
+ size_t numBytes, /* Number of bytes in script. If (size_t)-1, the
* script consists of all bytes up to the
* first NUL character. */
int flags, /* Collection of OR-ed bits that control the
@@ -4617,7 +4617,7 @@ TclEvalEx(
}
}
- if (numBytes < 0) {
+ if (numBytes == (size_t)-1) {
numBytes = strlen(script);
}
Tcl_ResetResult(interp);