diff options
author | Chris Robinson <[email protected]> | 2010-11-30 12:26:37 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-30 12:26:37 -0800 |
commit | 6fcaecdc9f9e13c488619c4970d5c0444a5ef0b3 (patch) | |
tree | 1bbeba1e8eed64275bf0e1b91c98b57358345705 /OpenAL32/alBuffer.c | |
parent | 8dc8090888e2a40d1056d2c30ad32586fc68910f (diff) |
Fix int-to-double conversion
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r-- | OpenAL32/alBuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index d9fc27ce..f34225a2 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -1086,7 +1086,7 @@ static __inline ALdouble Conv_ALdouble_ALshort(ALshort val) static __inline ALdouble Conv_ALdouble_ALushort(ALushort val) { return (val-32768) * (1.0/32767.0); } static __inline ALdouble Conv_ALdouble_ALint(ALint val) -{ return val * (1.0/214748364.0); } +{ return val * (1.0/2147483647.0); } static __inline ALdouble Conv_ALdouble_ALuint(ALuint val) { return (ALint)(val-2147483648u) * (1.0/2147483647.0); } static __inline ALdouble Conv_ALdouble_ALfloat(ALfloat val) |