From: Michal Krol Date: Fri, 10 Apr 2009 06:59:20 +0000 (+0200) Subject: draw: Silence pointer-to-integer cast warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13be57df3ac00a4bdfdafb10605c3be7056a21a5;p=mesa.git draw: Silence pointer-to-integer cast warning. --- 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;