draw: Silence pointer-to-integer cast warning.
authorMichal Krol <michal@vmware.com>
Fri, 10 Apr 2009 06:59:20 +0000 (08:59 +0200)
committerMichal Krol <michal@vmware.com>
Fri, 10 Apr 2009 07:07:19 +0000 (09:07 +0200)
src/gallium/auxiliary/draw/draw_pt_varray_tmp_linear.h

index 55a8e6521dc4e3709a441a43b236c5f877dc0d8c..010c7a18a7c93e0c0b35546728ca3487f6285a72 100644 (file)
@@ -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;