diff options
author | Dmitry Golovin <dima@golovin.in> | 2017-08-22 14:13:04 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-08-23 08:54:00 +0300 |
commit | c099018e01277b720eddafedcb460ef841efee01 (patch) | |
tree | 2cf453db5daa48d108cf471e0518deabf984bf39 | |
parent | 8221be35699141684d742bdffa8a55152546ac94 (diff) | |
download | apk-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.c | 2 |
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'; } |