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

Commit 206b4ccb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "AAudio: Remove use of -0x80000000" into tm-dev am: ec6795cb

parents da3e6fb9 ec6795cb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -39,9 +39,9 @@ static int32_t clamp32FromFloat(float f)
    static const float limneg = -1.;

    if (f <= limneg) {
        return -0x80000000; /* or 0x80000000 */
        return INT32_MIN;
    } else if (f >= limpos) {
        return 0x7fffffff;
        return INT32_MAX;
    }
    f *= scale;
    /* integer conversion is through truncation (though int to float is not).