From 8a6bddef4474edb4126d6281bca92bd884990a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Tue, 21 Nov 2023 19:34:38 +0300 Subject: [PATCH] =?UTF-8?q?mdbx++:=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BA=D0=B0=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=BF=D1=80=D0=BE=D1=82?= =?UTF-8?q?=D0=B8=D0=B2=20=D0=B1=D0=B0=D0=B3=D0=B0=20clang-format.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mdbx.h++ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mdbx.h++ b/mdbx.h++ index 175ef2ca..7b64eaf9 100644 --- a/mdbx.h++ +++ b/mdbx.h++ @@ -6593,9 +6593,9 @@ inline int compare_position(const cursor &left, const cursor &right, const auto diff = compare_position_nothrow(left, right, ignore_nested); assert(compare_position_nothrow(right, left, ignore_nested) == -diff); if (MDBX_LIKELY(int16_t(diff) == diff)) - MDBX_CXX20_LIKELY - return int(diff); - throw_incomparable_cursors(); + MDBX_CXX20_LIKELY return int(diff); + else + throw_incomparable_cursors(); } inline cursor::move_result::move_result(const cursor &cursor,