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/alFilter.c | |
parent | 56b8b976427175731b205262f11b420581e24efd (diff) |
Simplify some statements
Diffstat (limited to 'OpenAL32/alFilter.c')
-rw-r--r-- | OpenAL32/alFilter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c index e57653e0..01da4008 100644 --- a/OpenAL32/alFilter.c +++ b/OpenAL32/alFilter.c @@ -61,7 +61,7 @@ AL_API ALvoid AL_APIENTRY alGenFilters(ALsizei n, ALuint *filters) context = GetContextRef(); if(!context) return; - if(!(n >= 0)) + if(n < 0) alSetError(context, AL_INVALID_VALUE, "Generating %d filters", n); else for(cur = 0;cur < n;cur++) { @@ -90,7 +90,7 @@ AL_API ALvoid AL_APIENTRY alDeleteFilters(ALsizei n, const ALuint *filters) device = context->Device; LockFilterList(device); - if(!(n >= 0)) + if(n < 0) SETERR_GOTO(context, AL_INVALID_VALUE, done, "Deleting %d filters", n); for(i = 0;i < n;i++) { |