summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-04-10 08:59:20 +0200
committerMichal Krol <[email protected]>2009-04-10 09:07:19 +0200
commit13be57df3ac00a4bdfdafb10605c3be7056a21a5 (patch)
tree16a0a98d76bbc9630cd440e5d7d2fbb005489263 /src/gallium/auxiliary/draw
parentf4cc0692e6f285515e6a86367cf771be30665797 (diff)
draw: Silence pointer-to-integer cast warning.
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_varray_tmp_linear.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_varray_tmp_linear.h b/src/gallium/auxiliary/draw/draw_pt_varray_tmp_linear.h
index 55a8e6521dc..010c7a18a7c 100644
--- a/src/gallium/auxiliary/draw/draw_pt_varray_tmp_linear.h
+++ b/src/gallium/auxiliary/draw/draw_pt_varray_tmp_linear.h
@@ -9,7 +9,7 @@ static void FUNC(struct draw_pt_front_end *frontend,
unsigned count)
{
struct varray_frontend *varray = (struct varray_frontend *)frontend;
- unsigned start = (unsigned)elts;
+ unsigned start = (unsigned) ((char *) elts - (char *) NULL);
unsigned j;
unsigned first, incr;