[btree] When using lower_bound() assign to an int rather than unsigned
Patch from Ming-Hung Tsai
This commit is contained in:
parent
cf903cfea6
commit
c8d8af488f
@ -608,9 +608,13 @@ namespace persistent_data {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mi = leaf.lower_bound(key);
|
{
|
||||||
if (!mi || *mi < 0)
|
int lb = leaf.lower_bound(key);
|
||||||
return boost::optional<leaf_type>();
|
if (lb < 0)
|
||||||
|
return boost::optional<leaf_type>();
|
||||||
|
|
||||||
|
mi = lb;
|
||||||
|
}
|
||||||
|
|
||||||
node_ref<block_traits> internal = spine.template get_node<block_traits>();
|
node_ref<block_traits> internal = spine.template get_node<block_traits>();
|
||||||
block = internal.value_at(*mi);
|
block = internal.value_at(*mi);
|
||||||
|
Loading…
Reference in New Issue
Block a user