summaryrefslogtreecommitdiff
path: root/Source/Library
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-10-29 13:26:54 +0100
committerAlexis211 <alexis211@gmail.com>2009-10-29 13:26:54 +0100
commit962b8e892ce060b9690a35b0bcf6bae9a882c330 (patch)
tree3992f868eab544e041f51646a3015ef623e6f2a4 /Source/Library
parent4cab9cdad95aba4934b22872c94e44fab759250c (diff)
downloadMelon-962b8e892ce060b9690a35b0bcf6bae9a882c330.tar.gz
Melon-962b8e892ce060b9690a35b0bcf6bae9a882c330.zip
Arranged some paperwork
Diffstat (limited to 'Source/Library')
-rw-r--r--Source/Library/Common/WChar.class.cpp5
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