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.
This commit is contained in:
gambas 2021-03-10 01:55:50 +01:00
parent 53dd10bafe
commit 3240ebd8ef

View file

@ -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";