summaryrefslogtreecommitdiff
path: root/source/core/slang-char-encode.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-char-encode.h')
-rw-r--r--source/core/slang-char-encode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-char-encode.h b/source/core/slang-char-encode.h
index 74968a6ab..2ba8ba992 100644
--- a/source/core/slang-char-encode.h
+++ b/source/core/slang-char-encode.h
@@ -21,7 +21,7 @@ template<typename ReadByteFunc>
Char32 getUnicodePointFromUTF8(const ReadByteFunc& readByte)
{
Char32 codePoint = 0;
- uint32_t leading = Byte(readByte());
+ uint32_t leading = uint32_t(readByte());
uint32_t mask = 0x80;
Index count = 0;
while (leading & mask)