Skip to content

Commit

Permalink
[unity]去掉不必要的强转,避免接口变动后不报错
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Nov 5, 2024
1 parent 6785ea7 commit fe5baa2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2236,7 +2236,7 @@ bool RegisterCSharpType(puerts::JsClassInfo* classInfo)
}

pesapi_define_class(classInfo->TypeId, classInfo->SuperTypeId, classInfo->Name.c_str(),
classInfo->DelegateBridge ? &puerts::DelegateCtorCallback : &puerts::CtorCallback, classInfo->IsValueType ? (pesapi_finalize)&puerts::PApiFree : (pesapi_finalize)nullptr, propertiesCount, properties, classInfo);
classInfo->DelegateBridge ? &puerts::DelegateCtorCallback : &puerts::CtorCallback, classInfo->IsValueType ? &puerts::PApiFree : (pesapi_finalize)nullptr, propertiesCount, properties, classInfo);

if (!classInfo->IsValueType)
{
Expand Down

0 comments on commit fe5baa2

Please sign in to comment.