Commit d313c5e3 authored by Natanael Copa's avatar Natanael Copa
Browse files

info: fix compiler warning on x86_64

printf %i does not work so well with size_t on 64 bit.
Use %zu which seems to be portable enough.
parent 9858ffff
......@@ -257,9 +257,9 @@ static void info_print_url(struct apk_package *pkg)
static void info_print_size(struct apk_package *pkg)
if (apk_verbosity > 1)
printf("%s: %i", pkg->name->name, pkg->installed_size);
printf("%s: %zu", pkg->name->name, pkg->installed_size);
printf("%s-%s installed size:\n%i\n", pkg->name->name, pkg->version,
printf("%s-%s installed size:\n%zu\n", pkg->name->name, pkg->version,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment