summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libutils/String8.cpp4
1 files changed, 2 insertions, 2 deletions
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<char>(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<char>(toupper(*buf));
buf++;
length--;
}