mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:14:14 +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;
|
const int incomparable = INT16_MAX + 1;
|
||||||
if (unlikely(!l))
|
if (unlikely(!l))
|
||||||
return r ? -incomparable * 9 : 0;
|
return r ? -incomparable * 9 : 0;
|
||||||
if (unlikely(!r))
|
else if (unlikely(!r))
|
||||||
return l ? incomparable * 9 : 0;
|
return incomparable * 9;
|
||||||
|
|
||||||
if (unlikely(l->mc_signature != MDBX_MC_LIVE))
|
if (unlikely(l->mc_signature != MDBX_MC_LIVE))
|
||||||
return (r->mc_signature == MDBX_MC_LIVE) ? -incomparable * 8 : 0;
|
return (r->mc_signature == MDBX_MC_LIVE) ? -incomparable * 8 : 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user