diff options
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h index 3f401b7bb..7c43ad647 100644 --- a/source/core/slang-string.h +++ b/source/core/slang-string.h @@ -56,6 +56,7 @@ namespace Slang buffer[i++] = (char)(digit - 10 + 'A'); } while ((val /= radix) > 0); + SLANG_ASSERT(i >= 0); while(i < padTo) buffer[i++] = '0'; |
