Commit:    a46065ef7105514cc9b866b907ae6dd0ad529d25
Author:    Pierre Joye <pierre....@gmail.com>         Wed, 20 Mar 2013 09:24:54 
+0100
Parents:   a7a53d369bfcf3208b445b9aa12aa8a6e114c5fd
Branches:  master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=a46065ef7105514cc9b866b907ae6dd0ad529d25

Log:
- fix unix build

Changed paths:
  M  ext/gd/libgd/gd_interpolation.c


Diff:
diff --git a/ext/gd/libgd/gd_interpolation.c b/ext/gd/libgd/gd_interpolation.c
index 29dbe19..b2c6f41 100644
--- a/ext/gd/libgd/gd_interpolation.c
+++ b/ext/gd/libgd/gd_interpolation.c
@@ -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;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to