[CP] 用例偶现报错1235
This commit is contained in:
12
deps/oblib/src/lib/container/ob_mask_set2.h
vendored
12
deps/oblib/src/lib/container/ob_mask_set2.h
vendored
@ -61,9 +61,9 @@ public:
|
|||||||
if (array_->at(i) == key) {
|
if (array_->at(i) == key) {
|
||||||
hit = true;
|
hit = true;
|
||||||
if (OB_FAIL(bitset_.add_member(i))) {
|
if (OB_FAIL(bitset_.add_member(i))) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (OB_SUCCESS == ret) {
|
if (OB_SUCCESS == ret) {
|
||||||
if (!hit) {
|
if (!hit) {
|
||||||
@ -105,9 +105,9 @@ public:
|
|||||||
} else {
|
} else {
|
||||||
bool hit = false;
|
bool hit = false;
|
||||||
for (int64_t i = 0 ; OB_SUCCESS == ret && i < array_->count(); i++) {
|
for (int64_t i = 0 ; OB_SUCCESS == ret && i < array_->count(); i++) {
|
||||||
if (array_->at(i) == key) {
|
if (array_->at(i) == key) {
|
||||||
hit = true;
|
hit = true;
|
||||||
if (bitset_.has_member(i)) {
|
if (bitset_.has_member(i)) {
|
||||||
tmp_new_mask = false;
|
tmp_new_mask = false;
|
||||||
} else if (OB_FAIL(bitset_.add_member(i))) {
|
} else if (OB_FAIL(bitset_.add_member(i))) {
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user