mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 10:38:20 +08:00
mdbx: fix MSVC warnings (minor).
Change-Id: I614ee9ec1c21586fbe08c6cedb395ac57a81914f
This commit is contained in:
parent
5b4b3fa9ea
commit
e4ce115876
@ -13292,7 +13292,7 @@ static int mdbx_node_move(MDBX_cursor *csrc, MDBX_cursor *cdst, int fromleft) {
|
|||||||
key4move.iov_base = node_key(srcnode);
|
key4move.iov_base = node_key(srcnode);
|
||||||
|
|
||||||
if (csrc->mc_ki[csrc->mc_top] == 0) {
|
if (csrc->mc_ki[csrc->mc_top] == 0) {
|
||||||
const uint16_t snum = csrc->mc_snum;
|
const unsigned snum = csrc->mc_snum;
|
||||||
mdbx_cassert(csrc, snum > 0);
|
mdbx_cassert(csrc, snum > 0);
|
||||||
/* must find the lowest key below src */
|
/* must find the lowest key below src */
|
||||||
rc = mdbx_page_search_lowest(csrc);
|
rc = mdbx_page_search_lowest(csrc);
|
||||||
@ -13324,7 +13324,7 @@ static int mdbx_node_move(MDBX_cursor *csrc, MDBX_cursor *cdst, int fromleft) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (cdst->mc_ki[cdst->mc_top] == 0) {
|
if (cdst->mc_ki[cdst->mc_top] == 0) {
|
||||||
const uint16_t snum = cdst->mc_snum;
|
const unsigned snum = cdst->mc_snum;
|
||||||
mdbx_cassert(csrc, snum > 0);
|
mdbx_cassert(csrc, snum > 0);
|
||||||
MDBX_cursor mn;
|
MDBX_cursor mn;
|
||||||
mdbx_cursor_copy(cdst, &mn);
|
mdbx_cursor_copy(cdst, &mn);
|
||||||
@ -13737,7 +13737,7 @@ static int mdbx_page_merge(MDBX_cursor *csrc, MDBX_cursor *cdst) {
|
|||||||
mdbx_cassert(cdst, cdst->mc_snum == cdst->mc_top + 1);
|
mdbx_cassert(cdst, cdst->mc_snum == cdst->mc_top + 1);
|
||||||
MDBX_page *const top_page = cdst->mc_pg[cdst->mc_top];
|
MDBX_page *const top_page = cdst->mc_pg[cdst->mc_top];
|
||||||
const indx_t top_indx = cdst->mc_ki[cdst->mc_top];
|
const indx_t top_indx = cdst->mc_ki[cdst->mc_top];
|
||||||
const uint16_t save_snum = cdst->mc_snum;
|
const unsigned save_snum = cdst->mc_snum;
|
||||||
const uint16_t save_depth = cdst->mc_db->md_depth;
|
const uint16_t save_depth = cdst->mc_db->md_depth;
|
||||||
mdbx_cursor_pop(cdst);
|
mdbx_cursor_pop(cdst);
|
||||||
rc = mdbx_rebalance(cdst);
|
rc = mdbx_rebalance(cdst);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user