From fe0f983dfbc940b775b80a91badf474ceb57e62b Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Fri, 5 Mar 2021 18:26:49 +0200 Subject: [PATCH] intrusive_array: prepare for std::strong_ordering Newer comparators can return std::strong_ordering, so don't expect an int. --- utils/intrusive-array.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/intrusive-array.hh b/utils/intrusive-array.hh index 8d32979295..c7b0b7b3aa 100644 --- a/utils/intrusive-array.hh +++ b/utils/intrusive-array.hh @@ -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;