use labs istead of abs with long argument

cute-signatures
Dmitry Golovin 2017-08-22 14:13:04 +03:00 committed by Timo Teräs
parent 8221be3569
commit c099018e01
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ int apk_solver_commit_changeset(struct apk_database *db,
size_diff -= change->old_pkg->installed_size / 1024; size_diff -= change->old_pkg->installed_size / 1024;
} }
size_unit = 'K'; size_unit = 'K';
if (abs(size_diff) > 10000) { if (labs(size_diff) > 10000) {
size_diff /= 1024; size_diff /= 1024;
size_unit = 'M'; size_unit = 'M';
} }