summaryrefslogtreecommitdiffstats
path: root/generic/tclNamesp.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r--generic/tclNamesp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c
index 3933e4c..6fd1916 100644
--- a/generic/tclNamesp.c
+++ b/generic/tclNamesp.c
@@ -4909,7 +4909,7 @@ TclLogCommandInfo(
* command (must be <= command). */
const char *command, /* First character in command that generated
* the error. */
- size_t length, /* Number of bytes in command ((size_t)-1 means
+ size_t length, /* Number of bytes in command (-1 means
* use all bytes up to first null byte). */
const unsigned char *pc, /* Current pc of bytecode execution context */
Tcl_Obj **tosPtr) /* Current stack of bytecode execution
@@ -4941,7 +4941,7 @@ TclLogCommandInfo(
}
}
- if (length == (size_t)-1) {
+ if (length == TCL_AUTO_LENGTH) {
length = strlen(command);
}
overflow = (length > (size_t)limit);
@@ -5121,7 +5121,7 @@ Tcl_LogCommandInfo(
* command (must be <= command). */
const char *command, /* First character in command that generated
* the error. */
- size_t length) /* Number of bytes in command ((size_t)-1 means use
+ size_t length) /* Number of bytes in command (-1 means use
* all bytes up to first null byte). */
{
TclLogCommandInfo(interp, script, command, length, NULL, NULL);