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

Commit fa5f459a 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 am:...

Merge "AAudio: Remove use of -0x80000000" into tm-dev am: ec6795cb am: 03d4aab2 am: 153ecdb3 am: db34ec61

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/18467608



Change-Id: If084fcd7c139d1107f26a51225a40e99221c8263
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 584cbb7c db34ec61
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).