1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-10-31 15:45:03 -04:00

util: Use off_t instead of int for size values

Old output:
> Total Installed Size:  -1527.44 MiB

Fixed:
> Total Installed Size:  2568.56 MiB

Bug introduced in 7b8f8753b1.

Signed-off-by: Florian Pritz <bluewind@xinu.at>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Florian Pritz 2014-05-11 21:30:31 +02:00 committed by Allan McRae
parent 060d06d2f7
commit b929e74f2e

View File

@ -433,7 +433,7 @@ static void table_free(alpm_list_t *headers, alpm_list_t *rows)
alpm_list_free(rows);
}
static void add_transaction_sizes_row(alpm_list_t **rows, char *label, int size)
static void add_transaction_sizes_row(alpm_list_t **rows, char *label, off_t size)
{
alpm_list_t *row = NULL;
char *str;