From: Matt Turner Date: Sat, 11 Apr 2015 21:49:50 +0000 (-0700) Subject: i965: Make type_sz() return unsigned. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45a13486126fdf0cbb68b7a888cff642c32c1d12;p=mesa.git i965: Make type_sz() return unsigned. Avoids annoying warnings when comparing with sizeof(...). Reviewed-by: Jason Ekstrand --- 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) {