mdbx-tools: fix minor MSVC warnings.

Change-Id: If8b042e2d84bfed7f8b0a81a4d75d7be7e7aa7a9
This commit is contained in:
Leonid Yuriev 2018-11-05 00:31:58 +03:00
parent aa52cb395f
commit 3c684010e3

View File

@ -97,7 +97,7 @@ const char *only_subdb;
struct problem {
struct problem *pr_next;
uint64_t count;
size_t count;
const char *caption;
};
@ -221,8 +221,8 @@ static struct problem *problems_push(void) {
return p;
}
static uint64_t problems_pop(struct problem *list) {
uint64_t count = 0;
static size_t problems_pop(struct problem *list) {
size_t count = 0;
if (problems_list) {
int i;
@ -231,7 +231,7 @@ static uint64_t problems_pop(struct problem *list) {
for (i = 0; problems_list; ++i) {
struct problem *p = problems_list->pr_next;
count += problems_list->count;
print("%s%s (%" PRIu64 ")", i ? ", " : "", problems_list->caption,
print("%s%s (%" PRIuPTR ")", i ? ", " : "", problems_list->caption,
problems_list->count);
mdbx_free(problems_list);
problems_list = p;