diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-06-29 14:16:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-29 14:16:38 -0700 |
| commit | b2b08679a32506d629df84730f36639dab9f9593 (patch) | |
| tree | e9aad4ff9a6111d828ae2e4b217dc8145cda56dd /source/core/text-io.cpp | |
| parent | 16613ed981fc5dc38966f5108e85b1aee36ef92f (diff) | |
| parent | f4d900dfb64d95f121dd8565dd269be061ef8509 (diff) | |
Merge pull request #51 from tfoleyNV/refptr-string-cleanup
Overhaul `RefPtr` and `String`
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; |
