From 962b8e892ce060b9690a35b0bcf6bae9a882c330 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Thu, 29 Oct 2009 13:26:54 +0100 Subject: Arranged some paperwork --- Source/Library/Common/WChar.class.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source') 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 -- cgit v1.2.3