draw: Do not specify types in bitfields.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 30 Dec 2008 17:21:15 +0000 (17:21 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 30 Dec 2008 17:21:15 +0000 (17:21 +0000)
As advised by gcc -pedantic.

src/gallium/auxiliary/draw/draw_vertex.h

index a943607d7ede7ea69efea7d9bdae5f9714b08378..c143cf237230391c2990e8a00f2afbc983336e8e 100644 (file)
@@ -81,9 +81,9 @@ struct vertex_info
     * memcmp() comparisons.
     */
    struct {
-      ubyte interp_mode:4;      /**< INTERP_x */
-      ubyte emit:4;             /**< EMIT_x */
-      ubyte src_index;          /**< map to post-xform attribs */
+      unsigned interp_mode:4;      /**< INTERP_x */
+      unsigned emit:4;             /**< EMIT_x */
+      unsigned src_index:8;          /**< map to post-xform attribs */
    } attrib[PIPE_MAX_SHADER_INPUTS];
 };