fx.reflection: fix fx_string type marshalling

This commit is contained in:
2026-05-25 17:26:55 +01:00
parent f9b456a99f
commit 5d0aa577d6
+4 -4
View File
@@ -75,8 +75,9 @@ static void push_arg(
unsigned int param_value_type = __fx_type_get_value_type(param_type); unsigned int param_value_type = __fx_type_get_value_type(param_type);
if (param_value_type == __FX_VALUE_TYPE_CSTR if (param_value_type == __FX_VALUE_TYPE_CSTR
&& fx_value_is_type(arg, FX_TYPE_STRING)) { && fx_value_is_type(arg, FX_TYPE_STRING)) {
fx_value cstr = FX_CSTR( fx_object *obj;
fx_string_get_cstr(fx_value_get_object_c(arg))); fx_value_get_object(arg, &obj);
fx_value cstr = FX_CSTR(fx_string_get_cstr(obj));
callvm_push(vm, &cstr); callvm_push(vm, &cstr);
return; return;
} }
@@ -227,8 +228,7 @@ static void function_fini(fx_object *obj, void *priv)
} }
} }
/*** CLASS DEFINITION /*** CLASS DEFINITION *********************************************************/
* *********************************************************/
FX_TYPE_CLASS_BEGIN(fx_function) FX_TYPE_CLASS_BEGIN(fx_function)
FX_TYPE_VTABLE_INTERFACE_BEGIN(fx_object, FX_TYPE_OBJECT) FX_TYPE_VTABLE_INTERFACE_BEGIN(fx_object, FX_TYPE_OBJECT)