make percision conversion explicit in utils.c

This commit is contained in:
2026-09-03 15:42:58 +02:00
parent fcf510afa4
commit c7d2052fac
+2 -2
View File
@@ -2,12 +2,12 @@
void hammy_to_uppercase(char* str) { void hammy_to_uppercase(char* str) {
for (size_t i = 0; str[i] != '\0'; i++) { for (size_t i = 0; str[i] != '\0'; i++) {
str[i] = toupper((unsigned char)str[i]); str[i] = (char)toupper((unsigned char)str[i]);
} }
} }
void hammy_to_lowercase(char* str) { void hammy_to_lowercase(char* str) {
for (size_t i = 0; str[i] != '\0'; i++) { for (size_t i = 0; str[i] != '\0'; i++) {
str[i] = tolower((unsigned char)str[i]); str[i] = (char)tolower((unsigned char)str[i]);
} }
} }