From ff915534cd9f542c9320dcf4efc8b2426a139776 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 5 Jul 2014 02:01:36 -0700 Subject: [PATCH] Avoid aliasing an int array --- OpenAL32/alSource.c | 8 ++++---- 1 file 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; } -- 2.11.4.GIT