Commit 5a680b11 authored by Hui Su's avatar Hui Su

Add explicit cast in half_btf()

To silence asan failures in fuzzing tests.

BUG=:68825590,68825594,68825599

Change-Id: Ib2c713dc19af223da5e5fc5cec4652d71856f830
(cherry picked from commit e43ea91055133baaf3b691170a097a456c032e23)
parent a0367dc1
......@@ -104,7 +104,7 @@ static INLINE void round_shift_array(int32_t *arr, int size, int bit) {
static INLINE int32_t half_btf(int32_t w0, int32_t in0, int32_t w1, int32_t in1,
int bit) {
int32_t result_32 = w0 * in0 + w1 * in1;
int32_t result_32 = (int32_t)((int64_t)w0 * in0 + w1 * in1);
return round_shift(result_32, bit);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment