# HG changeset patch # User Mike Becker # Date 1666524766 -7200 # Node ID ea9b41b5ebbcc89559b0e8f367d558ea89735149 # Parent bb69ef3ad1f3bd94884a457b88f9bb8a58447c44 explicitly cast int to char diff -r bb69ef3ad1f3 -r ea9b41b5ebbc src/string.c --- a/src/string.c Sun Oct 23 13:32:16 2022 +0200 +++ b/src/string.c Sun Oct 23 13:32:46 2022 +0200 @@ -31,7 +31,6 @@ #include #include -#include #include #ifndef _WIN32 @@ -529,13 +528,13 @@ void cx_strlower(cxmutstr string) { cx_for_n(i, string.length) { - string.ptr[i] = tolower(string.ptr[i]); + string.ptr[i] = (char) tolower(string.ptr[i]); } } void cx_strupper(cxmutstr string) { cx_for_n(i, string.length) { - string.ptr[i] = toupper(string.ptr[i]); + string.ptr[i] = (char) toupper(string.ptr[i]); } }