diff options
author | Filip Gawin <[email protected]> | 2018-10-29 02:05:45 +0100 |
---|---|---|
committer | Filip Gawin <[email protected]> | 2018-10-29 13:38:58 +0100 |
commit | 08226bc6b0147b69a1afb74d83c6a8821e93601b (patch) | |
tree | fd39c1d42c21eb751b1aa9696d7c758f6fc7d4de /OpenAL32/alAuxEffectSlot.c | |
parent | 56b8b976427175731b205262f11b420581e24efd (diff) |
Simplify some statements
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index 8141e0f6..e1d84bb9 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -116,7 +116,7 @@ AL_API ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots(ALsizei n, ALuint *effectslo context = GetContextRef(); if(!context) return; - if(!(n >= 0)) + if(n < 0) SETERR_GOTO(context, AL_INVALID_VALUE, done, "Generating %d effect slots", n); if(n == 0) goto done; @@ -179,7 +179,7 @@ AL_API ALvoid AL_APIENTRY alDeleteAuxiliaryEffectSlots(ALsizei n, const ALuint * if(!context) return; LockEffectSlotList(context); - if(!(n >= 0)) + if(n < 0) SETERR_GOTO(context, AL_INVALID_VALUE, done, "Deleting %d effect slots", n); if(n == 0) goto done; |