From 3240ebd8ef6a2b73265f9b90552cb850807aab51 Mon Sep 17 00:00:00 2001 From: gambas Date: Wed, 10 Mar 2021 01:55:50 +0100 Subject: [PATCH] Fix the default NULL value for objects. JIT functions returning NULL objects as default value do not crash anymore. [GB.JIT] * BUG: Fix the default NULL value for objects. JIT functions returning NULL objects as default value do not crash anymore. --- main/lib/jit/jit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/lib/jit/jit.c b/main/lib/jit/jit.c index 5fe9f4032..050c3c901 100644 --- a/main/lib/jit/jit.c +++ b/main/lib/jit/jit.c @@ -222,7 +222,7 @@ const char *JIT_get_default_value(TYPE type) if (!_decl_null_object) { - JIT_print_decl(" const GB_OBJECT null_object = {GB_T_NULL};\n"); + JIT_print_decl(" const GB_OBJECT null_object = {GB_T_OBJECT};\n"); _decl_null_object = TRUE; } return "null_object";