From 5aa288ad7e457a4303f799fad803ba1e5845c6ce Mon Sep 17 00:00:00 2001 From: fusion32 Date: Mon, 8 Dec 2025 17:18:16 -0300 Subject: fix problem with converting strings to upper-case - fixes #45 --- src/utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3