From 45a13486126fdf0cbb68b7a888cff642c32c1d12 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 11 Apr 2015 14:49:50 -0700 Subject: [PATCH] i965: Make type_sz() return unsigned. Avoids annoying warnings when comparing with sizeof(...). Reviewed-by: Jason Ekstrand --- 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 924b05914cf..3a50e864aad 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.30.2