From 82f281c6bf645e4e849c4da1d55d2e153c61f9af Mon Sep 17 00:00:00 2001 From: Frank Tang Date: Wed, 2 Oct 2024 16:41:50 -0700 Subject: [PATCH] ICU-22934 Fix typo in PR#3230 --- icu4c/source/common/rbbinode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/common/rbbinode.cpp b/icu4c/source/common/rbbinode.cpp index fdb015a7a16f..20cd6e631b96 100644 --- a/icu4c/source/common/rbbinode.cpp +++ b/icu4c/source/common/rbbinode.cpp @@ -311,7 +311,7 @@ void RBBINode::flattenSets(UErrorCode &status, int depth) { RBBINode *usetNode = setRefNode->fLeftChild; RBBINode *replTree = usetNode->fLeftChild; fLeftChild = replTree->cloneTree(status, depth+1); - if (U_FAILURE(status)) { + if (U_SUCCESS(status)) { fLeftChild->fParent = this; } delete setRefNode; @@ -326,7 +326,7 @@ void RBBINode::flattenSets(UErrorCode &status, int depth) { RBBINode *usetNode = setRefNode->fLeftChild; RBBINode *replTree = usetNode->fLeftChild; fRightChild = replTree->cloneTree(status, depth+1); - if (U_FAILURE(status)) { + if (U_SUCCESS(status)) { fRightChild->fParent = this; } delete setRefNode;