summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tclUtf.c4
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;