summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Golovin <dima@golovin.in>2017-08-22 14:13:04 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-08-23 08:54:00 +0300
commitc099018e01277b720eddafedcb460ef841efee01 (patch)
tree2cf453db5daa48d108cf471e0518deabf984bf39
parent8221be35699141684d742bdffa8a55152546ac94 (diff)
downloadapk-tools-c099018e01277b720eddafedcb460ef841efee01.tar.gz
apk-tools-c099018e01277b720eddafedcb460ef841efee01.tar.bz2
apk-tools-c099018e01277b720eddafedcb460ef841efee01.tar.xz
apk-tools-c099018e01277b720eddafedcb460ef841efee01.zip
use labs istead of abs with long argument
-rw-r--r--src/commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c
index 278af5e..fa8267d 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -279,7 +279,7 @@ int apk_solver_commit_changeset(struct apk_database *db,
size_diff -= change->old_pkg->installed_size / 1024;
}
size_unit = 'K';
- if (abs(size_diff) > 10000) {
+ if (labs(size_diff) > 10000) {
size_diff /= 1024;
size_unit = 'M';
}