Skip to content

Commit a46065e

Browse files
committed
- fix unix build
1 parent a7a53d3 commit a46065e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/gd/libgd/gd_interpolation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ static inline LineContribType *_gdContributionsCalc(unsigned int line_size, unsi
925925
for (u = 0; u < line_size; u++) {
926926
const double dCenter = (double)u / scale_d;
927927
/* get the significant edge points affecting the pixel */
928-
register int iLeft = max (0, (int)floor (dCenter - width_d));
928+
register int iLeft = MAX(0, (int)floor (dCenter - width_d));
929929
int iRight = MIN((int)ceil(dCenter + width_d), (int)src_size - 1);
930930
double dTotalWeight = 0.0;
931931
int iSrc;

0 commit comments

Comments
 (0)