diff options
author | Michal Krol <[email protected]> | 2009-04-10 08:59:20 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-04-10 09:07:19 +0200 |
commit | 13be57df3ac00a4bdfdafb10605c3be7056a21a5 (patch) | |
tree | 16a0a98d76bbc9630cd440e5d7d2fbb005489263 | |
parent | f4cc0692e6f285515e6a86367cf771be30665797 (diff) |
draw: Silence pointer-to-integer cast warning.
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_varray_tmp_linear.h | 2 |
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; |