fix problem with converting strings to upper-case - fixes #45

This commit is contained in:
fusion32 2025-12-08 17:18:16 -03:00
parent eb07e8e87a
commit 5aa288ad7e

View File

@ -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;