Core: Fix null pointer crash
This commit is contained in:
@@ -3,8 +3,8 @@ call "..\misc\compile_setup.bat"
|
|||||||
|
|
||||||
bld --dont_compile_core
|
bld --dont_compile_core
|
||||||
cd build
|
cd build
|
||||||
rem core_main.exe rtsgame/main.core
|
core_main.exe rtsgame/main.core
|
||||||
core_main.exe examples/unions.core
|
rem core_main.exe examples/unions.core
|
||||||
bld --dont_compile_core --link=vendor/raylib/windows/raylibdll.lib
|
bld --dont_compile_core --link=vendor/raylib/windows/raylibdll.lib
|
||||||
rem build\generated_main.exe
|
rem build\generated_main.exe
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
@@ -582,7 +582,7 @@ gen_ast(Ast *ast) {
|
|||||||
|
|
||||||
CASE(RETURN, Return) {
|
CASE(RETURN, Return) {
|
||||||
gen("return ");
|
gen("return ");
|
||||||
gen_expr(node->expr);
|
if (node->expr) gen_expr(node->expr);
|
||||||
gen(";");
|
gen(";");
|
||||||
BREAK();
|
BREAK();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user