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

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

fix: sanitizer grunt on negative values implicitely converted to unsigned

Change-Id: I823dde29b811856bd1e418d689db5f783414b129
parent 1086091d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -292,7 +292,7 @@ static inline unsigned lc3_get_symbol(
    if (ac->error)
        ac->low = 0;

    unsigned s = 16;
    int s = 16;

    if (ac->low < range * symbols[s].low) {
        s >>= 1;
+1 −1
Original line number Diff line number Diff line
@@ -448,7 +448,7 @@ void lc3_tns_get_data(lc3_bits_t *bits,
            lc3_tns_order_models + data->lpc_weighting);

        for (int i = 0; i < data->rc_order[f]; i++)
            data->rc[f][i] = lc3_get_symbol(bits,
            data->rc[f][i] = (int)lc3_get_symbol(bits,
                lc3_tns_coeffs_models + i) - 8;
    }
}