[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-cvs
Subject:    [PHP-CVS] com php-src:  fix #64738, fix implicit type declaration: =?UTF-8?Q?ext/gd/libgd/gd=5Finter
From:       Pierre Joye <pajoye () php ! net>
Date:       2013-04-30 5:52:40
Message-ID: php-mail-0948c725956bb3cebd81411398c96ab11699167322 () git ! php ! net
[Download RAW message or body]

Commit:    1a335d20a89d0e797c10092810c6134720560b01
Author:    Pierre Joye <pierre.php@gmail.com>         Tue, 30 Apr 2013 07:52:40 +0200
Parents:   9877773438a46385710fc3e1314fb7a956da09b6
Branches:  PHP-5.5 master

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


Log:
 fix #64738, fix implicit type declaration

Bugs:
https://bugs.php.net/64738

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 ccdefb9..6c5549e 100644
--- a/ext/gd/libgd/gd_interpolation.c
+++ b/ext/gd/libgd/gd_interpolation.c
@@ -978,7 +978,7 @@ static inline void _gdScaleRow(gdImagePtr pSrc,  unsigned int \
src_width, gdImage  
 		/* Accumulate each channel */
         for (i = left; i <= right; i++) {
-			const left_channel = i - left;
+			const int left_channel = i - left;
             r += (unsigned char)(contrib->ContribRow[x].Weights[left_channel] * \
                (double)(gdTrueColorGetRed(p_src_row[i])));
             g += (unsigned char)(contrib->ContribRow[x].Weights[left_channel] * \
                (double)(gdTrueColorGetGreen(p_src_row[i])));
             b += (unsigned char)(contrib->ContribRow[x].Weights[left_channel] * \
(double)(gdTrueColorGetBlue(p_src_row[i])));


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic