diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-12-08 17:18:16 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-12-08 17:18:16 -0300 |
| commit | 5aa288ad7e457a4303f799fad803ba1e5845c6ce (patch) | |
| tree | bafb6afc2c79373365e9e00ad35d3e02c89b215f | |
| parent | eb07e8e87ab43de3907f4986d329b25dc8a750d2 (diff) | |
| download | game-5aa288ad7e457a4303f799fad803ba1e5845c6ce.tar.gz game-5aa288ad7e457a4303f799fad803ba1e5845c6ce.zip | |
fix problem with converting strings to upper-case - fixes #45
| -rw-r--r-- | src/utils.cc | 2 |
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; |
