projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0af49f7
)
fixed: parsing of compound expression return values in quick procedures
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Tue, 6 Feb 2024 20:27:54 +0000
(14:27 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Tue, 6 Feb 2024 20:27:54 +0000
(14:27 -0600)
compiler/src/parser.c
patch
|
blob
|
history
diff --git
a/compiler/src/parser.c
b/compiler/src/parser.c
index 13d4e1f46cebe4e9c171276b65233d6b54347ce5..e352a8f2820bc8f301bcb93e68d9da4d814935b2 100644
(file)
--- a/
compiler/src/parser.c
+++ b/
compiler/src/parser.c
@@
-3122,7
+3122,7
@@
static b32 parse_possible_quick_function_definition(OnyxParser* parser, AstTyped
return_type = (AstType *) &basic_type_auto_return;
} else {
- AstTyped* body = parse_
compound_
expression(parser, 0);
+ AstTyped* body = parse_expression(parser, 0);
if (body == NULL) {
onyx_report_error(parser->curr->pos, Error_Critical, "Expected an expression here.");
parser->hit_unexpected_token = 1;