summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index f4428d1..059f8dd 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -597,15 +597,15 @@ TclGetUniChar(
}
/*
- * Optimize the ByteArray case: N need need to convert to a string to
- * perform the indexing operation.
+ * Optimize the ByteArray case: no need to convert to a string to
+ * perform the indexing operation.
*/
if (TclIsPureByteArray(objPtr)) {
Tcl_Size length = 0;
unsigned char *bytes = Tcl_GetBytesFromObj(NULL, objPtr, &length);
if (index >= length) {
- return -1;
+ return -1;
}
return bytes[index];