!3798 Modifying Code Alarms

Merge pull request !3798 from hwx1163501/master
This commit is contained in:
openharmony_ci 2023-03-24 07:02:16 +00:00 committed by Gitee
commit b359990a1c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -38,7 +38,7 @@ VTable::Tuple VTable::CreateTuple(const JSThread *thread, JSTaggedValue phc,
uint32_t propsNumber = phcPoint->NumberOfProps();
int entry = layoutInfo->FindElementWithCache(thread, phcPoint, name.GetTaggedValue(), propsNumber);
ASSERT(entry != -1);
uint32_t offsetInt = phcPoint->GetInlinedPropertiesOffset(entry);
uint32_t offsetInt = phcPoint->GetInlinedPropertiesOffset(static_cast<uint32_t>(entry));
JSHandle<JSTaggedValue> offset(thread, JSTaggedValue(offsetInt));
CVector<JSHandle<JSTaggedValue>> vec {name, type, owner, offset};