Mesa (master): i965: Make type_sz() return unsigned.
Matt Turner
mattst88 at kemper.freedesktop.org
Tue Apr 21 17:04:07 UTC 2015
Module: Mesa
Branch: master
Commit: 45a13486126fdf0cbb68b7a888cff642c32c1d12
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=45a13486126fdf0cbb68b7a888cff642c32c1d12
Author: Matt Turner <mattst88 at gmail.com>
Date: Sat Apr 11 14:49:50 2015 -0700
i965: Make type_sz() return unsigned.
Avoids annoying warnings when comparing with sizeof(...).
Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
---
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) {
More information about the mesa-commit
mailing list