Compute in 32-bit integer type and cast result to 16-bit.
Found by clang -fsanitize=undefined.
1 file changed