diff options
author | Chris Robinson <[email protected]> | 2011-08-29 21:30:12 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-29 21:30:12 -0700 |
commit | 7408396fd4bc1e99c1f8bd66006c5587362a5d8e (patch) | |
tree | c01e5440dcfe31efa4eda1c001386b68659c554e /OpenAL32/alError.c | |
parent | da081b81c425805eef5b3d4a07c7a213490e04b7 (diff) |
Use a generic int type to handle enum swaps
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 edca01f2..88e284b0 100644 --- a/OpenAL32/alError.c +++ b/OpenAL32/alError.c @@ -32,7 +32,7 @@ AL_API ALenum AL_APIENTRY alGetError(ALvoid) Context = GetReffedContext(); if(!Context) return AL_INVALID_OPERATION; - errorCode = Exchange_ALenum(&Context->LastError, AL_NO_ERROR); + errorCode = ExchangeInt(&Context->LastError, AL_NO_ERROR); ALCcontext_DecRef(Context); @@ -41,5 +41,5 @@ AL_API ALenum AL_APIENTRY alGetError(ALvoid) ALvoid alSetError(ALCcontext *Context, ALenum errorCode) { - CompExchange_ALenum(&Context->LastError, AL_NO_ERROR, errorCode); + CompExchangeInt(&Context->LastError, AL_NO_ERROR, errorCode); } |