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:
YuliCheng 2024-11-20 11:32:22 +08:00
parent fd8fd6ae20
commit 6a1518dd7e

View File

@ -57,7 +57,7 @@ void JSAPILightWeightMap::ReplaceValue(const JSThread *thread, const JSHandle<JS
int32_t index, const JSHandle<JSTaggedValue> &value, AccossorsKind 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());
}