projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a3bd5e
)
glsl: Silence "ast_to_hir.cpp:1984:25: warning: comparison of unsigned expression...
author
Ian Romanick
<ian.d.romanick@intel.com>
Sun, 21 Aug 2011 22:44:35 +0000
(15:44 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 9 Sep 2011 19:01:50 +0000
(12:01 -0700)
ast_type_qualifier::location should have been a signed integer from
the beginning, and the giant comment in
apply_type_qualifier_to_variable explains why.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40207
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast.h
patch
|
blob
|
history
diff --git
a/src/glsl/ast.h
b/src/glsl/ast.h
index d1de2271873e9e8668afeea962b3290ee49a4953..532347df4bd724b46131fe554b057233f4bccbbe 100644
(file)
--- a/
src/glsl/ast.h
+++ b/
src/glsl/ast.h
@@
-372,7
+372,7
@@
struct ast_type_qualifier {
* \note
* This field is only valid if \c explicit_location is set.
*/
-
unsigned
location;
+
int
location;
/**
* Return true if and only if an interpolation qualifier is present.