Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41eaad8e authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "String8: explicit int -> char cast." am: 3619489d am: 84cdbe20

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1362304

Change-Id: Ic05e3199f98b2783d4c43bb0ff319a98288bb56a
parents b3243d1e 84cdbe20
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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--;
    }