aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alEffect.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-19 12:07:40 -0800
committerChris Robinson <[email protected]>2012-02-19 12:07:40 -0800
commit4a65747a4b20cbbfb2627bf10ded6f5b897cb908 (patch)
tree9a8c3bc309514340dd8795db8904fe51fd8d3803 /OpenAL32/alEffect.c
parent6dc194ed1defc358c9ed4ee8a67db71f5c040766 (diff)
Add a COUNTOF macro to get the number of entries in a static array
Diffstat (limited to 'OpenAL32/alEffect.c')
-rw-r--r--OpenAL32/alEffect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c
index 4e04089c..aebda3c7 100644
--- a/OpenAL32/alEffect.c
+++ b/OpenAL32/alEffect.c
@@ -1449,7 +1449,7 @@ static const struct {
DECL(SMALLWATERROOM),
};
#undef DECL
-static const ALsizei reverblistsize = sizeof(reverblist)/sizeof(reverblist[0]);
+static const ALsizei reverblistsize = COUNTOF(reverblist);
ALvoid GetReverbEffect(const char *name, ALeffect *effect)
{