gallium/util: another unsigned -> enum pipe_prim_type change
authorBrian Paul <brianp@vmware.com>
Fri, 27 May 2016 21:56:07 +0000 (15:56 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 27 May 2016 23:55:05 +0000 (17:55 -0600)
gcc didn't warn about the unsigned / enum pipe_prim_type mismatch
between the .c and .h file.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/util/u_debug.c

index 0d63cfee5e85ab639003661fe29326e774b18357..3a94b75ee335c602b554f2f790a4eb743698aa08 100644 (file)
@@ -423,7 +423,7 @@ debug_print_format(const char *msg, unsigned fmt )
 
 /** Return string name of given primitive type */
 const char *
-u_prim_name(unsigned prim)
+u_prim_name(enum pipe_prim_type prim)
 {
    static const struct debug_named_value names[] = {
       DEBUG_NAMED_VALUE(PIPE_PRIM_POINTS),