From 0849a621fd2b965edce74c10a916e46b9b328a6d Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 11 Jun 2019 16:50:25 +0200 Subject: [PATCH] Fix abs(long) warnings in gd.c I'm fixing this using (int) casts instead of labs() because this is what upstream GD does. --- ext/gd/libgd/gd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index 2013e8ef42..4492a9d381 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -1256,7 +1256,7 @@ void gdImageAALine (gdImagePtr im, int x1, int y1, int x2, int y2, int col) if (dx == 0 && dy == 0) { return; } - if (abs(dx) > abs(dy)) { + if (abs((int)dx) > abs((int)dy)) { if (dx < 0) { tmp = x1; x1 = x2; -- 2.40.0