com php-src: Fix abs(long) warnings in gd.c: ext/gd/libgd/gd.c

From: Date: Tue, 11 Jun 2019 14:50:25 +0000
Subject: com php-src: Fix abs(long) warnings in gd.c: ext/gd/libgd/gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106684@lists.php.net to get a copy of this message
Commit: 0849a621fd2b965edce74c10a916e46b9b328a6d Author: Nikita Popov <nikita.ppv@gmail.com> Tue, 11 Jun 2019 16:50:25 +0200 Parents: fc65da5c59f454616ebef0b9b6fd8951b2e17ecf Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0849a621fd2b965edce74c10a916e46b9b328a6d Log: Fix abs(long) warnings in gd.c I'm fixing this using (int) casts instead of labs() because this is what upstream GD does. Changed paths: M ext/gd/libgd/gd.c Diff: diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index 2013e8e..4492a9d 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;

« previous php.cvs (#106684) next »