Skip to content

Commit

Permalink
[Runtime]Fix clang compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
JX-Master committed Sep 3, 2024
1 parent b5c62aa commit 3eadd4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/Luna/Runtime/Source/Serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ namespace Luna
LUNA_RUNTIME_API R<Variant> serialize(typeinfo_t type, const void* inst)
{
SerializableTypeDesc* d = (SerializableTypeDesc*)get_type_private_data(type, serialization_data_guid);
if (!d) return set_error(BasicError::not_supported(), "Type %s is not serializable.", get_type_name(type));
if (!d) return set_error(BasicError::not_supported(), "Type %s is not serializable.", get_type_name(type).c_str());
return d->serialize_func(type, inst);
}
LUNA_RUNTIME_API RV deserialize(typeinfo_t type, void* inst, const Variant& data)
{
SerializableTypeDesc* d = (SerializableTypeDesc*)get_type_private_data(type, serialization_data_guid);
if (!d) return set_error(BasicError::not_supported(), "Type %s is not serializable.", get_type_name(type));
if (!d) return set_error(BasicError::not_supported(), "Type %s is not serializable.", get_type_name(type).c_str());
return d->deserialize_func(type, inst, data);
}
}

0 comments on commit 3eadd4b

Please sign in to comment.