aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alBuffer.c
diff options
context:
space:
mode:
authorFilip Gawin <[email protected]>2018-10-29 02:05:45 +0100
committerFilip Gawin <[email protected]>2018-10-29 13:38:58 +0100
commit08226bc6b0147b69a1afb74d83c6a8821e93601b (patch)
treefd39c1d42c21eb751b1aa9696d7c758f6fc7d4de /OpenAL32/alBuffer.c
parent56b8b976427175731b205262f11b420581e24efd (diff)
Simplify some statements
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r--OpenAL32/alBuffer.c2
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++)
{