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

Commit 586f2d0c authored by Antoine Soulier's avatar Antoine Soulier Committed by Jakub Pawlowski
Browse files

fix warning on signed/unsigned comparison

Test: compilation
Bug: 150670922
Change-Id: I96946895a7ab6ea8f1e68692fd3e28c8ad7db6a3
parent da3b3b7b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -286,9 +286,9 @@ static inline unsigned lc3_get_symbol(
    const struct lc3_ac_symbol *symbols = model->s;
    struct lc3_bits_ac *ac = &bits->ac;

    uint16_t range = ac->range >> 10;
    unsigned range = (ac->range >> 10) & 0xffff;

    ac->error |= (ac->low >= ((unsigned)range << 10));
    ac->error |= (ac->low >= (range << 10));
    if (ac->error)
        ac->low = 0;