Skip to content

Commit

Permalink
Merge pull request #127 from Brainrotlang/fix/runtime_error
Browse files Browse the repository at this point in the history
Fix(runtime): access null pointer
  • Loading branch information
SIGMazer authored Feb 19, 2025
2 parents 7bdd66e + e2ed23b commit acd4bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -3473,7 +3473,7 @@ void handle_return_statement(ASTNode *expr)
}

// skibidi main function do not have jump buffer
if (CURRENT_JUMP_BUFFER()){
if (jump_buffer){
exit_scope(); // exit current function scope
LONGJMP();
}
Expand Down

0 comments on commit acd4bf0

Please sign in to comment.