diff options
author | Steven Moreland <smoreland@google.com> | 2020-07-14 16:45:29 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-07-14 16:45:29 +0000 |
commit | 84cdbe20a476d35ae426bcbb12feb39e67a83518 (patch) | |
tree | b530b6851074fd00ceccb2b9b9234c81cc74739d | |
parent | 8a5c635a8fb37d6fde7bcad502c4953965d20f69 (diff) | |
parent | 3619489de6509036ce84783f4ec862f73806e836 (diff) |
Merge "String8: explicit int -> char cast." am: 3619489de6
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1362304
Change-Id: Iadd3d6cf8bce3351b1be0767ece1a2fad141886a
-rw-r--r-- | libutils/String8.cpp | 4 |
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--; } |