Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Small simplification

  • Loading branch information...
commit 29ebe448b0c079bac2943026cd0e5f81a0d56e20 1 parent 3d7e985
@nickg authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/sem.c
View
4 src/sem.c
@@ -840,9 +840,7 @@ static void sem_declare_predefined_ops(tree_t decl)
break;
}
- bool array_attrs = ((kind == T_CARRAY)
- || (kind == T_SUBTYPE && type_is_array(t)));
- if (array_attrs) {
+ if (type_is_array(t)) {
ident_t length_i = ident_new("LENGTH");
tree_add_attr_tree(decl, length_i,
sem_builtin_fn(length_i,
Please sign in to comment.
Something went wrong with that request. Please try again.