tools: fix minor defects (coverity).

Change-Id: I3a80dcb31c54718d22cdca6272aa028685956243
This commit is contained in:
Leo Yuriev 2017-07-04 13:06:54 +03:00
parent 14484a6f32
commit d01a97f729

View File

@ -229,7 +229,7 @@ static int pgvisitor(uint64_t pgno, unsigned pgnumber, void *ctx,
if (type) {
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);
if (index < 0)
return ENOMEM;