summaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-22 00:35:08 -0700
committerChris Robinson <[email protected]>2011-09-22 00:35:08 -0700
commit43350f9066f0c28ac8ff6269783db222508dec45 (patch)
treedc74c80fcbb2f7d39f3124e56605cac656e56e23 /OpenAL32/alSource.c
parent0988023d30d16563461f92ffcad6a5fc1d5766f3 (diff)
Silence some MSVC precision warnings
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index f98efc20..4941bc65 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -940,7 +940,7 @@ AL_API ALvoid AL_APIENTRY alGetSourcef(ALuint source, ALenum eParam, ALfloat *pf
pContext->Device->Frequency;
GetSourceOffset(Source, eParam, Offsets, updateLen);
UnlockContext(pContext);
- *pflValue = Offsets[0];
+ *pflValue = (ALfloat)Offsets[0];
break;
case AL_CONE_INNER_ANGLE:
@@ -1087,8 +1087,8 @@ AL_API ALvoid AL_APIENTRY alGetSourcefv(ALuint source, ALenum eParam, ALfloat *p
pContext->Device->Frequency;
GetSourceOffset(Source, eParam, Offsets, updateLen);
UnlockContext(pContext);
- pflValues[0] = Offsets[0];
- pflValues[1] = Offsets[1];
+ pflValues[0] = (ALfloat)Offsets[0];
+ pflValues[1] = (ALfloat)Offsets[1];
break;
default: