aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/prevector.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/prevector.h b/src/prevector.h
index 16b2f8dca7..a0e1e140b4 100644
--- a/src/prevector.h
+++ b/src/prevector.h
@@ -412,12 +412,7 @@ public:
}
void swap(prevector<N, T, Size, Diff>& other) {
- if (_size & other._size & 1) {
- std::swap(_union.capacity, other._union.capacity);
- std::swap(_union.indirect, other._union.indirect);
- } else {
- std::swap(_union, other._union);
- }
+ std::swap(_union, other._union);
std::swap(_size, other._size);
}