mdbx: исправление предупреждения UBSAN.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2023-01-01 17:26:34 +03:00
parent ab55016599
commit 2c8d3e1e12

View File

@ -4805,8 +4805,7 @@ static size_t cursor_keep(const MDBX_txn *const txn, const MDBX_cursor *mc) {
tASSERT(txn, IS_LEAF(mp));
if (!mc->mc_xcursor || mc->mc_ki[mc->mc_top] >= page_numkeys(mp))
break;
const MDBX_node *const node = page_node(mp, mc->mc_ki[mc->mc_top]);
if (!(node->mn_flags & F_SUBDATA))
if (!(node_flags(page_node(mp, mc->mc_ki[mc->mc_top])) & F_SUBDATA))
break;
mc = &mc->mc_xcursor->mx_cursor;
}