diff options
author | Chris Robinson <[email protected]> | 2012-10-31 06:58:16 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-31 06:58:16 -0700 |
commit | e868dad61c3f95008298e7870453526213ef1492 (patch) | |
tree | 969d9de6f98e1a1c803cec5d5ebdb26a911cd15a /Alc/ALu.c | |
parent | 4a3d36a1766035825b0e66a8fd2a8c4aacee7140 (diff) |
Make a decimal value a float type
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -910,7 +910,7 @@ static __inline ALint aluF2I(ALfloat val) { /* Clamp the value between -1 and +1. This handles that without branching. */ val = val+1.0f - fabsf(val-1.0f); - val = (val-2.0f + fabsf(val+2.0f)) * 0.25; + val = (val-2.0f + fabsf(val+2.0f)) * 0.25f; /* Convert to a signed integer, between -2147483647 and +2147483647. */ return fastf2i((ALfloat)(val*2147483647.0)); } |