Mesa (master): vbo: fix void * arithmetic warning
Keith Whitwell
keithw at kemper.freedesktop.org
Wed Feb 3 11:52:53 UTC 2010
Module: Mesa
Branch: master
Commit: 64da2aeebc04a98c999e4dac9290999d03c1e3d5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=64da2aeebc04a98c999e4dac9290999d03c1e3d5
Author: Keith Whitwell <keithw at vmware.com>
Date: Wed Feb 3 11:52:14 2010 +0000
vbo: fix void * arithmetic warning
---
src/mesa/vbo/vbo_split_inplace.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/mesa/vbo/vbo_split_inplace.c b/src/mesa/vbo/vbo_split_inplace.c
index 2a671a5..2fc866c 100644
--- a/src/mesa/vbo/vbo_split_inplace.c
+++ b/src/mesa/vbo/vbo_split_inplace.c
@@ -72,7 +72,8 @@ static void flush_vertex( struct split_context *split )
ib = *split->ib;
ib.count = split->max_index - split->min_index + 1;
- ib.ptr += split->min_index * _mesa_sizeof_type(ib.type);
+ ib.ptr = (const void *)((const char *)ib.ptr +
+ split->min_index * _mesa_sizeof_type(ib.type));
/* Rebase the primitives to save index buffer entries. */
for (i = 0; i < split->dstprim_nr; i++)
More information about the mesa-commit
mailing list