aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alBuffer.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/alBuffer.c
parent6dc194ed1defc358c9ed4ee8a67db71f5c040766 (diff)
Add a COUNTOF macro to get the number of entries in a static array
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r--OpenAL32/alBuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index 6a3bb114..5a0e1dee 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -2136,7 +2136,7 @@ static ALboolean DecomposeUserFormat(ALenum format, enum UserFmtChannels *chans,
};
ALuint i;
- for(i = 0;i < sizeof(list)/sizeof(list[0]);i++)
+ for(i = 0;i < COUNTOF(list);i++)
{
if(list[i].format == format)
{
@@ -2213,7 +2213,7 @@ static ALboolean DecomposeFormat(ALenum format, enum FmtChannels *chans, enum Fm
};
ALuint i;
- for(i = 0;i < sizeof(list)/sizeof(list[0]);i++)
+ for(i = 0;i < COUNTOF(list);i++)
{
if(list[i].format == format)
{