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/alBuffer.c | |
parent | 56b8b976427175731b205262f11b420581e24efd (diff) |
Simplify some statements
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r-- | OpenAL32/alBuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index ed712434..0b8c27f5 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -77,7 +77,7 @@ AL_API ALvoid AL_APIENTRY alGenBuffers(ALsizei n, ALuint *buffers) context = GetContextRef(); if(!context) return; - if(!(n >= 0)) + if(n < 0) alSetError(context, AL_INVALID_VALUE, "Generating %d buffers", n); else for(cur = 0;cur < n;cur++) { |