]> granicus.if.org Git - php/commitdiff
- fix unix build
authorPierre Joye <pierre.php@gmail.com>
Wed, 20 Mar 2013 08:24:54 +0000 (09:24 +0100)
committerPierre Joye <pierre.php@gmail.com>
Wed, 20 Mar 2013 08:24:54 +0000 (09:24 +0100)
ext/gd/libgd/gd_interpolation.c

index 29dbe19027d21f6ffc9b4be6d19dbb11e6a17bc1..b2c6f41908514b708e342070c5aa23d038af087e 100644 (file)
@@ -925,7 +925,7 @@ static inline LineContribType *_gdContributionsCalc(unsigned int line_size, unsi
     for (u = 0; u < line_size; u++) {
         const double dCenter = (double)u / scale_d;
         /* get the significant edge points affecting the pixel */
-        register int iLeft = max (0, (int)floor (dCenter - width_d));
+        register int iLeft = MAX(0, (int)floor (dCenter - width_d));
         int iRight = MIN((int)ceil(dCenter + width_d), (int)src_size - 1);
         double dTotalWeight = 0.0;
                int iSrc;