diff options
author | Chris Robinson <[email protected]> | 2014-07-26 03:00:49 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-07-26 03:00:49 -0700 |
commit | 531c0d8e6b3d0ad8ff4ad8278a1030785deb3d77 (patch) | |
tree | d0d7085526edb0f31bf4986cbc4dd64d0f5ceee8 /OpenAL32/alError.c | |
parent | a3dbe08c8b9df301dded52ad78f655c2753be56c (diff) |
Explicitly pass the address of atomics and parameters that can be modified
Diffstat (limited to 'OpenAL32/alError.c')
-rw-r--r-- | OpenAL32/alError.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alError.c b/OpenAL32/alError.c index 6d3870fd..e43c7b45 100644 --- a/OpenAL32/alError.c +++ b/OpenAL32/alError.c @@ -46,7 +46,7 @@ ALvoid alSetError(ALCcontext *Context, ALenum errorCode) raise(SIGTRAP); #endif } - (void)ATOMIC_COMPARE_EXCHANGE(ALenum, Context->LastError, curerr, errorCode); + (void)ATOMIC_COMPARE_EXCHANGE(ALenum, &Context->LastError, &curerr, errorCode); } AL_API ALenum AL_APIENTRY alGetError(void) @@ -69,7 +69,7 @@ AL_API ALenum AL_APIENTRY alGetError(void) return AL_INVALID_OPERATION; } - errorCode = ATOMIC_EXCHANGE(ALenum, Context->LastError, AL_NO_ERROR); + errorCode = ATOMIC_EXCHANGE(ALenum, &Context->LastError, AL_NO_ERROR); ALCcontext_DecRef(Context); |