fix PIMap operator<<(PIMap) error for size=2
This commit is contained in:
@@ -365,8 +365,8 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
if (other.size() == 2) {
|
if (other.size() == 2) {
|
||||||
insert(other.pim_index[0].key, other.pim_content[0]);
|
insert(other.pim_index[0].key, other.pim_content[other.pim_index[0].index]);
|
||||||
insert(other.pim_index[1].key, other.pim_content[1]);
|
insert(other.pim_index[1].key, other.pim_content[other.pim_index[1].index]);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
for (int i = 0; i < other.pim_index.size_s(); ++i) {
|
for (int i = 0; i < other.pim_index.size_s(); ++i) {
|
||||||
|
|||||||
Reference in New Issue
Block a user