diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-14 13:11:55 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-14 13:11:55 (GMT) |
| commit | 556c0dbc24744d656c4e3b7ebe4810fd1dc089a5 (patch) | |
| tree | 49d08ef32c93c4152d52e3f0a8747bebaacdc252 | |
| parent | fc77f0dda4c38f5d8a31b62f9e2cb35927922dc5 (diff) | |
| download | tcl-556c0dbc24744d656c4e3b7ebe4810fd1dc089a5.zip tcl-556c0dbc24744d656c4e3b7ebe4810fd1dc089a5.tar.gz tcl-556c0dbc24744d656c4e3b7ebe4810fd1dc089a5.tar.bz2 | |
Two paces where TCL_AUTO_LENGTH should be used
| -rw-r--r-- | generic/tclUtf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c index 644939b..b12e8bf 100644 --- a/generic/tclUtf.c +++ b/generic/tclUtf.c @@ -240,7 +240,7 @@ Tcl_UniCharToUtfDString( if (uniStr == NULL) { return NULL; } - if (uniLength < 0) { + if (uniLength == TCL_AUTO_LENGTH) { uniLength = 0; w = uniStr; while (*w != '\0') { @@ -282,7 +282,7 @@ Tcl_Char16ToUtfDString( if (uniStr == NULL) { return NULL; } - if (uniLength < 0) { + if (uniLength == TCL_AUTO_LENGTH) { uniLength = 0; w = uniStr; |
