intrusive_array: prepare for std::strong_ordering

Newer comparators can return std::strong_ordering, so don't
expect an int.
This commit is contained in:
Avi Kivity
2021-03-05 18:26:49 +02:00
parent 9fbe4850c9
commit fe0f983dfb

View File

@@ -271,7 +271,7 @@ public:
int i = 0;
do {
int x = cmp(_data[i].object, val);
auto x = cmp(_data[i].object, val);
if (x >= 0) {
match = (x == 0);
break;