diff --git a/libutils/String8.cpp b/libutils/String8.cpp index d00e39c56..c83789145 100644 --- a/libutils/String8.cpp +++ b/libutils/String8.cpp @@ -424,7 +424,7 @@ void String8::toLower(size_t start, size_t length) char* buf = lockBuffer(len); buf += start; while (length > 0) { - *buf = tolower(*buf); + *buf = static_cast(tolower(*buf)); buf++; length--; } @@ -448,7 +448,7 @@ void String8::toUpper(size_t start, size_t length) char* buf = lockBuffer(len); buf += start; while (length > 0) { - *buf = toupper(*buf); + *buf = static_cast(toupper(*buf)); buf++; length--; }