diff options
| author | Baitinq <[email protected]> | 2025-07-06 22:43:29 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-07-06 22:45:29 +0200 |
| commit | 98e4fee2a84fea626777b151c71fcb977be1c230 (patch) | |
| tree | afd5615605d290ce81b27fa8b4ab6da5765252fb /src/bootstrap/parser.pry | |
| parent | Boostrap: Improve codegen for function declaration (starting to work on params) (diff) | |
| download | pry-lang-98e4fee2a84fea626777b151c71fcb977be1c230.tar.gz pry-lang-98e4fee2a84fea626777b151c71fcb977be1c230.tar.bz2 pry-lang-98e4fee2a84fea626777b151c71fcb977be1c230.zip | |
Boostrap: Codegen function definition arguments
Diffstat (limited to '')
| -rw-r--r-- | src/bootstrap/parser.pry | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/parser.pry b/src/bootstrap/parser.pry index fe5fbee..8bc1c2e 100644 --- a/src/bootstrap/parser.pry +++ b/src/bootstrap/parser.pry @@ -420,7 +420,7 @@ let parser_parse_function_parameters = (p: *parser) => *slice { }; let d = cast(*NODE_PRIMARY_EXPRESSION_IDENTIFIER_DATA, arena_alloc((*p).arena, sizeof(NODE_PRIMARY_EXPRESSION_IDENTIFIER_DATA))); - (*d).name = cast(*i8, ident.data); + (*d).name = cast(*i8, (*ident).data); /* TODO: Typecheck struct access */ (*d).type = type_annotation; let n = Node{}; n.type = NODE_PRIMARY_EXPRESSION_IDENTIFIER; |