From: Brian Paul Date: Sat, 7 Mar 2015 20:15:22 +0000 (-0700) Subject: mesa: use ARRAY_SIZE in _mesa_QueryMatrixxOES() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ca5eaf49ce184009571f58fb94865cf788e8907;p=mesa.git mesa: use ARRAY_SIZE in _mesa_QueryMatrixxOES() Reviewed-by: Matt Turner --- diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/querymatrix.c index ccd5c5e9904..18361c929fb 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;