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

Commit 46a807f4 authored by Torne (Richard Coles)'s avatar Torne (Richard Coles)
Browse files

Also allow + in stringToFloat.

Some resource files also use a + prefix; allow that as well as -.

Change-Id: I79cf13841849633f8fa49ee7e23698079d890489
parent 463a7c3a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4472,7 +4472,7 @@ bool ResTable::stringToFloat(const char16_t* s, size_t len, Res_value* outValue)
    if (len > 0) {
        return false;
    }
    if ((buf[0] < '0' || buf[0] > '9') && buf[0] != '.' && buf[0] != '-') {
    if ((buf[0] < '0' || buf[0] > '9') && buf[0] != '.' && buf[0] != '-' && buf[0] != '+') {
        return false;
    }