mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-23 10:09:54 +00:00
Fix container warning
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IB5O89 Signed-off-by: yulicheng <chengyuli1@huawei.com>
This commit is contained in:
parent
fd8fd6ae20
commit
6a1518dd7e
@ -57,7 +57,7 @@ void JSAPILightWeightMap::ReplaceValue(const JSThread *thread, const JSHandle<JS
|
|||||||
int32_t index, const JSHandle<JSTaggedValue> &value, AccossorsKind kind)
|
int32_t index, const JSHandle<JSTaggedValue> &value, AccossorsKind kind)
|
||||||
{
|
{
|
||||||
JSHandle<TaggedArray> array = GetArrayByKind(thread, lightWeightMap, kind);
|
JSHandle<TaggedArray> array = GetArrayByKind(thread, lightWeightMap, kind);
|
||||||
ASSERT(0 <= index || index < static_cast<int32_t>(lightWeightMap->GetSize()));
|
ASSERT(0 <= index && index < static_cast<int32_t>(lightWeightMap->GetSize()));
|
||||||
array->Set(thread, index, value.GetTaggedValue());
|
array->Set(thread, index, value.GetTaggedValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user