diff options
Diffstat (limited to 'source/core/slang-string.cpp')
| -rw-r--r-- | source/core/slang-string.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-string.cpp b/source/core/slang-string.cpp index 9b3575ad8..03de07ee1 100644 --- a/source/core/slang-string.cpp +++ b/source/core/slang-string.cpp @@ -633,7 +633,7 @@ namespace Slang const char* chars = m_begin; const char firstChar = inChars[0]; - for (Int i = 0; i < len - inLen; ++i) + for (Int i = 0; i <= len - inLen; ++i) { if (chars[i] == firstChar && in == UnownedStringSlice(chars + i, inLen)) { |
