diff options
Diffstat (limited to 'source/core/slang-string.h')
| -rw-r--r-- | source/core/slang-string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h index 5a20d8b75..4c87ce81e 100644 --- a/source/core/slang-string.h +++ b/source/core/slang-string.h @@ -111,9 +111,9 @@ namespace Slang return -1; } - const char& operator[](int i) const + const char& operator[](UInt i) const { - assert(i >= 0 && i < int(endData - beginData)); + assert(i < UInt(endData - beginData)); return beginData[i]; } |
