summaryrefslogtreecommitdiff
path: root/ext/gd/libgd
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-11 16:50:25 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-06-11 16:50:25 +0200
commit0849a621fd2b965edce74c10a916e46b9b328a6d (patch)
tree46288bab24a42c406cb68e883cfdb598c670e424 /ext/gd/libgd
parentfc65da5c59f454616ebef0b9b6fd8951b2e17ecf (diff)
downloadphp-git-0849a621fd2b965edce74c10a916e46b9b328a6d.tar.gz
Fix abs(long) warnings in gd.c
I'm fixing this using (int) casts instead of labs() because this is what upstream GD does.
Diffstat (limited to 'ext/gd/libgd')
-rw-r--r--ext/gd/libgd/gd.c2
1 files changed, 1 insertions, 1 deletions
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;