aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-07-05 02:01:36 -0700
committerChris Robinson <[email protected]>2014-07-05 02:01:36 -0700
commitff915534cd9f542c9320dcf4efc8b2426a139776 (patch)
treeb72db28f0827700e0c79ff34afd7d6a20d57c3de /OpenAL32/alSource.c
parentb88aaaf1bc36f4e59e3052396d39680a4c1d54ff (diff)
Avoid aliasing an int array
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index a580c45c..3da891bc 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -1308,15 +1308,15 @@ static ALboolean GetSourcei64v(ALsource *Source, ALCcontext *Context, SrcIntProp
case siBuffer:
case siDirectFilter:
if((err=GetSourceiv(Source, Context, (int)prop, ivals)) != AL_FALSE)
- *values = ((ALuint*)ivals)[0];
+ *values = (ALuint)ivals[0];
return err;
case siAuxSendFilter:
if((err=GetSourceiv(Source, Context, (int)prop, ivals)) != AL_FALSE)
{
- values[0] = ((ALuint*)ivals)[0];
- values[1] = ((ALuint*)ivals)[1];
- values[2] = ((ALuint*)ivals)[2];
+ values[0] = (ALuint)ivals[0];
+ values[1] = (ALuint)ivals[1];
+ values[2] = (ALuint)ivals[2];
}
return err;
}