Add a missing cast to silence MSVC
This commit is contained in:
parent
2c501f3b28
commit
b313c881c0
@ -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. */
|
/* Clamp the value between -1 and +1. This handles that with only a single branch. */
|
||||||
if(fabsf(val) > 1.0f)
|
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. */
|
/* Convert to a signed integer, between -2147483647 and +2147483647. */
|
||||||
return fastf2i((ALfloat)(val*2147483647.0));
|
return fastf2i((ALfloat)(val*2147483647.0));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user