summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 3aa5863..6ba4d4d 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -3588,9 +3588,9 @@ int getUtf8Char(const char *input,char ids[MAX_UTF8_CHAR_SIZE],CaseModifier modi
{
switch (modifier)
{
- case CaseModifier::None: ids[0]=*input; break;
- case CaseModifier::ToUpper: ids[0]=toupper(*input); break;
- case CaseModifier::ToLower: ids[0]=tolower(*input); break;
+ case CaseModifier::None: ids[0]=*input; break;
+ case CaseModifier::ToUpper: ids[0]=(char)toupper(*input); break;
+ case CaseModifier::ToLower: ids[0]=(char)tolower(*input); break;
}
l=1; // 0xxx.xxxx => normal single byte ascii character
}