Change note

Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IB5CJS

Signed-off-by: chenhantao <chenhantao3@huawei.com>
Change-Id: I2d8d44f6c23a1cb70d21a8d8df22c468e6ddff8b
This commit is contained in:
chenhantao 2024-11-19 12:50:25 +08:00
parent 0095d534b3
commit 6c6f2d57db

View File

@ -249,7 +249,7 @@ JSTaggedValue TaggedHashArray::RemoveNode(JSThread *thread, int hash, JSTaggedVa
Set(thread, index, JSTaggedValue::Hole());
return oldValue;
}
//set root node as red
//set root node as black
RBTreeNode *root = RBTreeNode::Cast(rootTreeNodeVa.GetTaggedObject());
if (root->GetIsRed().ToBoolean()) {
root->SetIsRed(thread, JSTaggedValue(false));