Skip to content

Commit

Permalink
fix(parse_import_stmt) Fixed the warnings from incompatible pointer t…
Browse files Browse the repository at this point in the history
…ype 'char'
  • Loading branch information
natangscalvence committed Dec 1, 2024
1 parent 5b32372 commit 1958d23
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file added examples/bitwise.glx
Empty file.
2 changes: 1 addition & 1 deletion src/frontend/parser/statements/parse_import_stmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ AstNode *parse_import_stmt(Parser *parser) {
exit(EXIT_FAILURE);
}

import_data->packages[import_data->package_count] = strdup(package);
import_data->packages[import_data->package_count] = (AstNode*)strdup(package);
import_data->package_count++;

if (at(parser).type == TOKEN_COMMA){
Expand Down

0 comments on commit 1958d23

Please sign in to comment.