projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaad9f6
)
clarify error message more
author
Judah Caruso
<judahrcr@gmail.com>
Thu, 7 Dec 2023 23:30:38 +0000
(23:30 +0000)
committer
Judah Caruso
<judahrcr@gmail.com>
Thu, 7 Dec 2023 23:30:38 +0000
(23:30 +0000)
compiler/src/types.c
patch
|
blob
|
history
diff --git
a/compiler/src/types.c
b/compiler/src/types.c
index ee17680ab1a53b0cfcf54115a4f53b7705c9e8c3..ee5ed9695cb9f64e965b947441ce9f6f4b4ad202 100644
(file)
--- a/
compiler/src/types.c
+++ b/
compiler/src/types.c
@@
-383,7
+383,7
@@
static Type* type_build_from_ast_inner(bh_allocator alloc, AstType* type_node, b
if (!valid) {
if (!(a_node->count_expr->flags & Ast_Flag_Const)) {
- onyx_report_error(a_node->token->pos, Error_Critical, "Array type size must be a constant
expression
.");
+ onyx_report_error(a_node->token->pos, Error_Critical, "Array type size must be a constant.");
}
else {
onyx_report_error(a_node->token->pos, Error_Critical, "Array type size expression must be 'i32', got '%s'.",