Fix white scan errors at ob_number_v2

This commit is contained in:
br0
2021-08-30 15:35:41 +08:00
committed by wangzelin.wzl
parent 2303f8e5b5
commit 0d7efce19a

View File

@ -6309,8 +6309,9 @@ int ObNumber::power(
int abs_exponent = std::abs(exponent); int abs_exponent = std::abs(exponent);
number::ObNumber base_product; number::ObNumber base_product;
base_product.from(*this, one_time_allocator); if (OB_FAIL(base_product.from(*this, one_time_allocator))) {
if ((abs_exponent & 1) != 0) { LOG_WARN("failed: deep copy this to base_product", K(ret));
} else if ((abs_exponent & 1) != 0) {
if (OB_FAIL(result.from(*this, one_time_allocator))) { if (OB_FAIL(result.from(*this, one_time_allocator))) {
LOG_WARN("failed: deep copy base to result", K(ret)); LOG_WARN("failed: deep copy base to result", K(ret));
} }