diff options
Diffstat (limited to 'source/lexer.elna')
| -rw-r--r-- | source/lexer.elna | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lexer.elna b/source/lexer.elna index bf1c449..370c24d 100644 --- a/source/lexer.elna +++ b/source/lexer.elna @@ -528,7 +528,7 @@ proc elna_lexer_token_create(kind: ElnaLexerKind; position: ^ElnaPosition) -> ^E var result: ^ElnaLexerToken begin - result := malloc(#size(ElnaLexerToken)); + result := malloc#[ElnaLexerToken](#size(ElnaLexerToken)); result^.kind := kind; result^.position := position^ return result @@ -640,7 +640,7 @@ var character: Word8 result: ^ElnaLexerToken begin - result := malloc(#size(ElnaLexerToken)); + result := malloc#[ElnaLexerToken](#size(ElnaLexerToken)); character := start_position^; if character = ';' then @@ -722,7 +722,7 @@ begin token := elna_lexer_classify_single(cursor^.start, @cursor^.position) elsif action_to_perform = ElnaLexerAction.eof then - token := malloc(#size(ElnaLexerToken)); + token := malloc#[ElnaLexerToken](#size(ElnaLexerToken)); token^.kind := ElnaLexerKind.eof elsif action_to_perform = ElnaLexerAction.finalize then token := elna_lexer_classify_finalize(cursor^.start, @cursor^.position) |
