Commit 3943c3ec authored by Luis de Bethencourt's avatar Luis de Bethencourt

goom: fix undefined behaviour of left-shift

Don't left-shift into the sign bit, the result is undefined and potentially
an overflow could flip the sign.
parent 5dc2e6be
......@@ -731,7 +731,7 @@ generatePrecalCoef (int precalCoef[16][16])
if (!(coefh || coefv)) {
i = 255;
} else {
int i1, i2, i3, i4;
uint i1, i2, i3, i4;
i1 = diffcoeffh * diffcoeffv;
i2 = coefh * diffcoeffv;
......
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