summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/querymatrix.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-03-07 13:15:22 -0700
committerBrian Paul <brianp@vmware.com>2015-03-12 07:52:45 -0600
commit6ca5eaf49ce184009571f58fb94865cf788e8907 (patch)
treec7dc5811b1695b9d844ac39a5a46ca4d70f6dfdd /src/mesa/main/querymatrix.c
parentc3984c1155bc78b45001f90ed1333bbacfc32151 (diff)
downloadexternal_mesa3d-6ca5eaf49ce184009571f58fb94865cf788e8907.zip
external_mesa3d-6ca5eaf49ce184009571f58fb94865cf788e8907.tar.gz
external_mesa3d-6ca5eaf49ce184009571f58fb94865cf788e8907.tar.bz2
mesa: use ARRAY_SIZE in _mesa_QueryMatrixxOES()
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/main/querymatrix.c')
-rw-r--r--src/mesa/main/querymatrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/querymatrix.c
index ccd5c5e..18361c9 100644
--- a/src/mesa/main/querymatrix.c
+++ b/src/mesa/main/querymatrix.c
@@ -75,7 +75,7 @@ _mesa_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16])
* we can return immediately, as _mesa_GetInteger() will have
* logged the necessary error already.
*/
- for (i = 0; i < sizeof(modes)/sizeof(modes[0]); i++) {
+ for (i = 0; i < ARRAY_SIZE(modes); i++) {
if (modes[i].currentMode == currentMode) {
desiredMatrix = modes[i].desiredMatrix;
break;