projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a731c0a
)
swap flag from const to comptime
author
Judah Caruso
<judahrcr@gmail.com>
Fri, 8 Dec 2023 02:32:47 +0000
(
02:32
+0000)
committer
Judah Caruso
<judahrcr@gmail.com>
Fri, 8 Dec 2023 02:32:47 +0000
(
02:32
+0000)
compiler/src/types.c
patch
|
blob
|
history
diff --git
a/compiler/src/types.c
b/compiler/src/types.c
index ee5ed9695cb9f64e965b947441ce9f6f4b4ad202..805f7102405b254c06eb704a28cba8137e065bde 100644
(file)
--- a/
compiler/src/types.c
+++ b/
compiler/src/types.c
@@
-382,7
+382,7
@@
static Type* type_build_from_ast_inner(bh_allocator alloc, AstType* type_node, b
count = get_expression_integer_value(a_node->count_expr, &valid);
if (!valid) {
- if (!(a_node->count_expr->flags & Ast_Flag_Co
nst
)) {
+ if (!(a_node->count_expr->flags & Ast_Flag_Co
mptime
)) {
onyx_report_error(a_node->token->pos, Error_Critical, "Array type size must be a constant.");
}
else {