diff options
author | Chris Robinson <[email protected]> | 2014-07-05 02:01:36 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-07-05 02:01:36 -0700 |
commit | ff915534cd9f542c9320dcf4efc8b2426a139776 (patch) | |
tree | b72db28f0827700e0c79ff34afd7d6a20d57c3de /OpenAL32/alSource.c | |
parent | b88aaaf1bc36f4e59e3052396d39680a4c1d54ff (diff) |
Avoid aliasing an int array
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r-- | OpenAL32/alSource.c | 8 |
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; } |