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

Commit af609f93 authored by Yi Kong's avatar Yi Kong
Browse files

Fix comparing int32_t with INT64_MIN

This is obviously a typo.

Found by Clang tautological-constant-out-of-range-compare warning.

Test: presubmit
Bug: 72331526
Change-Id: I2cb217282c524bb9fbae899fa5a731b7575e393a
parent a43fcd7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -355,7 +355,7 @@ status_t SampleIterator::findSampleTimeAndDuration(
    if (offset > 0) {
        *time += offset;
    } else {
        *time -= (offset == INT64_MIN ? INT64_MAX : (-offset));
        *time -= (offset == INT32_MIN ? INT64_MAX : (-offset));
    }

    *duration = mTTSDuration;