summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-08-20 08:23:23 -0600
committerBrian Paul <[email protected]>2013-08-20 13:14:25 -0600
commitd427278a2de4c7f492ed1b7f0d342788ce2bbf4e (patch)
treece80e87cd320a19ef70601c51da617078dfa601b /src/mesa/main/get.c
parent76feef0823df75a36f264f48ec843dd863fd5b89 (diff)
mesa: use ARRAY_SIZE() macro instead of magic number
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 09b008a072e..4f6f59ae6bb 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -709,7 +709,7 @@ find_custom_value(struct gl_context *ctx, const struct value_desc *d, union valu
case GL_COMPRESSED_TEXTURE_FORMATS_ARB:
v->value_int_n.n =
_mesa_get_compressed_formats(ctx, v->value_int_n.ints);
- ASSERT(v->value_int_n.n <= 100);
+ ASSERT(v->value_int_n.n <= ARRAY_SIZE(v->value_int_n.ints));
break;
case GL_MAX_VARYING_FLOATS_ARB: