mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:14:12 +08:00
mdbx: устранение несущественного замечания Coverity.
This commit is contained in:
parent
6b72d88fde
commit
72332a8f9e
@ -19626,8 +19626,8 @@ int mdbx_cursor_compare(const MDBX_cursor *l, const MDBX_cursor *r,
|
||||
const int incomparable = INT16_MAX + 1;
|
||||
if (unlikely(!l))
|
||||
return r ? -incomparable * 9 : 0;
|
||||
if (unlikely(!r))
|
||||
return l ? incomparable * 9 : 0;
|
||||
else if (unlikely(!r))
|
||||
return incomparable * 9;
|
||||
|
||||
if (unlikely(l->mc_signature != MDBX_MC_LIVE))
|
||||
return (r->mc_signature == MDBX_MC_LIVE) ? -incomparable * 8 : 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user