Merge "String8: explicit int -> char cast." am: 3619489de6 am: 84cdbe20a4
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1362304 Change-Id: Ic05e3199f98b2783d4c43bb0ff319a98288bb56a
This commit is contained in:
commit
41eaad8e35
1 changed files with 2 additions and 2 deletions
|
|
@ -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--;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue