From c099018e01277b720eddafedcb460ef841efee01 Mon Sep 17 00:00:00 2001 From: Dmitry Golovin Date: Tue, 22 Aug 2017 14:13:04 +0300 Subject: use labs istead of abs with long argument --- src/commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commit.c') 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'; } -- cgit v1.2.3-70-g09d2