aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2013-06-10 15:59:55 -0700
committerMatt Turner <[email protected]>2013-07-11 20:58:58 -0700
commitce2464a8a70e8449cb8b927fe4ae485dc93cfda3 (patch)
treebd6a592052c15d6e203ae73295b66f23c9e94eaa
parent361206771c76d2ea0ef97632404467082688e072 (diff)
glsl: Change type of is_array to bool.
Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r--src/glsl/ast.h8
-rw-r--r--src/glsl/glsl_parser_extras.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index 103146c1047..b86f97becf9 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -317,13 +317,13 @@ public:
class ast_declaration : public ast_node {
public:
- ast_declaration(const char *identifier, int is_array, ast_expression *array_size,
+ ast_declaration(const char *identifier, bool is_array, ast_expression *array_size,
ast_expression *initializer);
virtual void print(void) const;
const char *identifier;
- int is_array;
+ bool is_array;
ast_expression *array_size;
ast_expression *initializer;
@@ -498,7 +498,7 @@ public:
const char *type_name;
ast_struct_specifier *structure;
- int is_array;
+ bool is_array;
ast_expression *array_size;
unsigned precision:2;
@@ -566,7 +566,7 @@ public:
ast_fully_specified_type *type;
const char *identifier;
- int is_array;
+ bool is_array;
ast_expression *array_size;
static void parameters_to_hir(exec_list *ast_parameters,
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index f4087df304a..664f8d15917 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -959,7 +959,7 @@ ast_declaration::print(void) const
}
-ast_declaration::ast_declaration(const char *identifier, int is_array,
+ast_declaration::ast_declaration(const char *identifier, bool is_array,
ast_expression *array_size,
ast_expression *initializer)
{