We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ae765e commit 30b75cfCopy full SHA for 30b75cf
src/ccutil/unicharmap.cpp
@@ -83,7 +83,7 @@ bool UNICHARMAP::contains(const char* const unichar_repr,
83
if (unichar_repr == nullptr || *unichar_repr == '\0') return false;
84
if (length <= 0 || length > UNICHAR_LEN) return false;
85
int index = 0;
86
- if (index >= length || unichar_repr[index] == '\0') return false;
+ if (unichar_repr[index] == '\0') return false;
87
UNICHARMAP_NODE* current_nodes = nodes;
88
89
while (current_nodes != nullptr && index + 1 < length &&
0 commit comments