From c9c2ab44cae17043b9404fa5f8bfb2580866dc65 Mon Sep 17 00:00:00 2001 From: Jannik Vogel Date: Tue, 11 Aug 2015 01:56:12 +0200 Subject: [PATCH] use ARRAYSIZE --- hw/xbox/nv2a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xbox/nv2a.c b/hw/xbox/nv2a.c index 6f3f4c0434..800e202d29 100644 --- a/hw/xbox/nv2a.c +++ b/hw/xbox/nv2a.c @@ -4959,7 +4959,7 @@ static void pgraph_method(NV2AState *d, pg->draw_arrays_max_count = MAX(pg->draw_arrays_max_count, start + count); - assert(pg->draw_arrays_length < sizeof(pg->gl_draw_arrays_start) / sizeof(pg->gl_draw_arrays_start[0])); + assert(pg->draw_arrays_length < ARRAYSIZE(pg->gl_draw_arrays_start)); /* Attempt to connect primitives */ if (pg->draw_arrays_length > 0) {