diff options
Diffstat (limited to 'Source/Library/Common/WChar.class.cpp')
-rw-r--r-- | Source/Library/Common/WChar.class.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Library/Common/WChar.class.cpp b/Source/Library/Common/WChar.class.cpp index 5485bb8..f5bd5bc 100644 --- a/Source/Library/Common/WChar.class.cpp +++ b/Source/Library/Common/WChar.class.cpp @@ -59,8 +59,9 @@ u32int WChar::utfLen(const char* c, u8int encoding) { } void WChar::affectAscii(char c) { - if (c >= 0) value = c; - else value = CP437[c + 128]; + s32int a = c; + if (a >= 0) value = a; + else value = CP437[a + 128]; } u32int WChar::affectUtf8(const char* c) { //Returns the number of bytes for the character |