i965: Make type_sz() return unsigned.
authorMatt Turner <mattst88@gmail.com>
Sat, 11 Apr 2015 21:49:50 +0000 (14:49 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 21 Apr 2015 16:24:48 +0000 (09:24 -0700)
Avoids annoying warnings when comparing with sizeof(...).

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_reg.h

index 924b05914cf3eda1db05ef049226be096efa26e3..3a50e864aad5892e27c8a3a79b2e25fc87372d6d 100644 (file)
@@ -265,7 +265,7 @@ struct brw_indirect {
 };
 
 
-static inline int
+static inline unsigned
 type_sz(unsigned type)
 {
    switch(type) {