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

Commit 98c70762 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix build error from signed/unsigned comparison"

parents b29ff558 1a867dcb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -313,7 +313,7 @@ status_t String8::appendFormatV(const char* fmt, va_list args)

    if (n > 0) {
        size_t oldLength = length();
        if (n > std::numeric_limits<size_t>::max() - 1 ||
        if (static_cast<size_t>(n) > std::numeric_limits<size_t>::max() - 1 ||
            oldLength > std::numeric_limits<size_t>::max() - n - 1) {
            return NO_MEMORY;
        }