mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 19:34:15 +08:00
tools: fix minor defects (coverity).
Change-Id: I3a80dcb31c54718d22cdca6272aa028685956243
This commit is contained in:
parent
14484a6f32
commit
d01a97f729
@ -229,7 +229,7 @@ static int pgvisitor(uint64_t pgno, unsigned pgnumber, void *ctx,
|
|||||||
|
|
||||||
if (type) {
|
if (type) {
|
||||||
uint64_t page_bytes = payload_bytes + header_bytes + unused_bytes;
|
uint64_t page_bytes = payload_bytes + header_bytes + unused_bytes;
|
||||||
uint64_t page_size = pgnumber * envstat.ms_psize;
|
size_t page_size = (size_t)pgnumber * envstat.ms_psize;
|
||||||
int index = pagemap_lookup_dbi(dbi);
|
int index = pagemap_lookup_dbi(dbi);
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user