From e868dad61c3f95008298e7870453526213ef1492 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 31 Oct 2012 06:58:16 -0700 Subject: [PATCH] Make a decimal value a float type --- Alc/ALu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index ec7c0ffd..e0e5f8a3 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -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)); }