aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-03-22 11:21:21 -0700
committerChris Robinson <[email protected]>2013-03-22 11:21:21 -0700
commitb313c881c0e60c89695d283ceffc54e3547bb63d (patch)
tree69a7a5f8b60d147dcca2440e24b516f25dbf2bde /Alc/ALu.c
parent2c501f3b287c0f63e57a11dee5282c536b5206e5 (diff)
Add a missing cast to silence MSVC
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 3cd70455..424b12ac 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -918,7 +918,7 @@ static __inline ALint aluF2I(ALfloat val)
{
/* Clamp the value between -1 and +1. This handles that with only a single branch. */
if(fabsf(val) > 1.0f)
- val = (0.0f < val) - (val < 0.0f);
+ val = (ALfloat)((0.0f < val) - (val < 0.0f));
/* Convert to a signed integer, between -2147483647 and +2147483647. */
return fastf2i((ALfloat)(val*2147483647.0));
}