From: Brian Paul Date: Sat, 28 Feb 2015 16:05:24 +0000 (-0700) Subject: i915: replace Elements() with ARRAY_SIZE() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b565771003fc416e6ccccda8b10efa2423ae7e5a;p=mesa.git i915: replace Elements() with ARRAY_SIZE() Acked-by: Ilia Mirkin --- diff --git a/src/mesa/drivers/dri/i915/intel_fbo.c b/src/mesa/drivers/dri/i915/intel_fbo.c index 2a343856c52..1e1397d747f 100644 --- a/src/mesa/drivers/dri/i915/intel_fbo.c +++ b/src/mesa/drivers/dri/i915/intel_fbo.c @@ -599,7 +599,7 @@ intel_validate_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb) } } - for (i = 0; i < Elements(fb->Attachment); i++) { + for (i = 0; i < ARRAY_SIZE(fb->Attachment); i++) { struct gl_renderbuffer *rb; struct intel_renderbuffer *irb;