From 3eadd4b9dc2951264e491e3e2b1982e06b9399ca Mon Sep 17 00:00:00 2001 From: JX-Master Date: Tue, 3 Sep 2024 22:17:07 +0800 Subject: [PATCH] [Runtime]Fix clang compile error. --- Modules/Luna/Runtime/Source/Serialization.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Luna/Runtime/Source/Serialization.cpp b/Modules/Luna/Runtime/Source/Serialization.cpp index c75345c..26b08a8 100644 --- a/Modules/Luna/Runtime/Source/Serialization.cpp +++ b/Modules/Luna/Runtime/Source/Serialization.cpp @@ -167,13 +167,13 @@ namespace Luna LUNA_RUNTIME_API R 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); } } \ No newline at end of file