[Mesa-dev] [PATCH 03/10] i965: Make type_sz() return unsigned.

Matt Turner mattst88 at gmail.com
Tue Apr 14 16:15:40 PDT 2015


Avoids annoying warnings when comparing with sizeof(...).
---
 src/mesa/drivers/dri/i965/brw_reg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_reg.h b/src/mesa/drivers/dri/i965/brw_reg.h
index 924b059..3a50e86 100644
--- a/src/mesa/drivers/dri/i965/brw_reg.h
+++ b/src/mesa/drivers/dri/i965/brw_reg.h
@@ -265,7 +265,7 @@ struct brw_indirect {
 };
 
 
-static inline int
+static inline unsigned
 type_sz(unsigned type)
 {
    switch(type) {
-- 
2.0.5



More information about the mesa-dev mailing list