Skip to content

Commit 5c844c1

Browse files
committed
Fix fabs warning in gd_interpolation.c
Matches upstream code.
1 parent 2290102 commit 5c844c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/gd/libgd/gd_interpolation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,8 +2398,8 @@ int gdTransformAffineCopy(gdImagePtr dst,
23982398

23992399
gdImageGetClip(dst, &c1x, &c1y, &c2x, &c2y);
24002400

2401-
end_x = bbox.width + (int) fabs(bbox.x);
2402-
end_y = bbox.height + (int) fabs(bbox.y);
2401+
end_x = bbox.width + abs(bbox.x);
2402+
end_y = bbox.height + abs(bbox.y);
24032403

24042404
/* Get inverse affine to let us work with destination -> source */
24052405
gdAffineInvert(inv, affine);

0 commit comments

Comments
 (0)