diff options
author | Chris Robinson <[email protected]> | 2013-04-22 00:52:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-04-22 00:52:50 -0700 |
commit | 563f16dc2a52de3217c90313ca6bddbbc20f20a0 (patch) | |
tree | d2a5e1c3e7681b5d91304d18d44576c7746db8e7 /OpenAL32/alEffect.c | |
parent | 43b406ad9bb32ebde78d26255a2a4f4a09a29926 (diff) |
Fix overflow issues when converting float to int
32-bit floats can only reach between -16777215...+16777215 (25 bits) before it
starts losing whole-number accuracy. Some compiler optimizations may break
trying to multiply a float by 2147483647.0 when the result is given right to a
float parameter, causing it instead to multiply by the nearest representable
float value, 2147483648.0.
Diffstat (limited to 'OpenAL32/alEffect.c')
0 files changed, 0 insertions, 0 deletions