aboutsummaryrefslogtreecommitdiff
path: root/src/utils.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-12-08 17:18:16 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-12-08 17:18:16 -0300
commit5aa288ad7e457a4303f799fad803ba1e5845c6ce (patch)
treebafb6afc2c79373365e9e00ad35d3e02c89b215f /src/utils.cc
parenteb07e8e87ab43de3907f4986d329b25dc8a750d2 (diff)
downloadgame-5aa288ad7e457a4303f799fad803ba1e5845c6ce.tar.gz
game-5aa288ad7e457a4303f799fad803ba1e5845c6ce.zip
fix problem with converting strings to upper-case - fixes #45
Diffstat (limited to 'src/utils.cc')
-rw-r--r--src/utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.cc b/src/utils.cc
index 11aa048..3937923 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -143,7 +143,7 @@ int toLower(int c){
int toUpper(int c){
// TODO(fusion): Same problem as `isAlpha`.
- if(('A' <= c && c <= 'Z') || (0xE0 <= c && c <= 0xFE && c != 0xF7)){
+ if(('a' <= c && c <= 'z') || (0xE0 <= c && c <= 0xFE && c != 0xF7)){
c -= 32;
}
return c;