diff options
Diffstat (limited to 'source/core/text-io.cpp')
| -rw-r--r-- | source/core/text-io.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/core/text-io.cpp b/source/core/text-io.cpp index 3e5013cf3..7815d7422 100644 --- a/source/core/text-io.cpp +++ b/source/core/text-io.cpp @@ -28,7 +28,7 @@ namespace Slang public: virtual void GetBytes(List<char> & result, const String & str) override { - int ptr = 0; + UInt ptr = 0; while (ptr < str.Length()) { int codePoint = GetUnicodePointFromUTF8([&](int) @@ -66,7 +66,7 @@ namespace Slang {} virtual void GetBytes(List<char> & result, const String & str) override { - int ptr = 0; + UInt ptr = 0; while (ptr < str.Length()) { int codePoint = GetUnicodePointFromUTF8([&](int) @@ -156,7 +156,7 @@ namespace Slang #else newLine = "\n"; #endif - for (int i = 0; i < str.Length(); i++) + for (UInt i = 0; i < str.Length(); i++) { if (str[i] == '\r') sb << newLine; |
