summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/mga/mgarender.c
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2004-02-05 06:39:20 +0000
committerDave Airlie <airliedfreedesktop.org>2004-02-05 06:39:20 +0000
commit540bb3a8303a051ba690d7d9ecaee4d83b74cdbb (patch)
tree92b88cce4248153c9e8854e3a04c9f5599676508 /src/mesa/drivers/dri/mga/mgarender.c
parentb3063ac398b72e6a4fd2015d4e220495b9779294 (diff)
fix ugly bug triggered by macro expansion
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)