Commit c099018e authored by Dmitry Golovin's avatar Dmitry Golovin Committed by Timo Teräs

use labs istead of abs with long argument

parent 8221be35
...@@ -279,7 +279,7 @@ int apk_solver_commit_changeset(struct apk_database *db, ...@@ -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';
} }
......
Markdown is supported
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