summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/mga/mgarender.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/mga/mgarender.c')
-rw-r--r--src/mesa/drivers/dri/mga/mgarender.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/mga/mgarender.c b/src/mesa/drivers/dri/mga/mgarender.c
index 3dd15e21a67..a7de390be6d 100644
--- a/src/mesa/drivers/dri/mga/mgarender.c
+++ b/src/mesa/drivers/dri/mga/mgarender.c
@@ -109,7 +109,7 @@ static void mgaDmaPrimitive( GLcontext *ctx, GLenum prim )
#define ALLOC_VERTS( nr ) \
- mgaAllocDmaLow( mmesa, nr * mmesa->vertex_size * 4)
+ mgaAllocDmaLow( mmesa, (nr) * mmesa->vertex_size * 4)
#define EMIT_VERTS( ctx, j, nr, buf ) \
mga_emit_contiguous_verts(ctx, j, (j)+(nr), buf)