From: Christoph M. Becker Date: Thu, 10 Jan 2019 23:21:44 +0000 (+0100) Subject: Fix misleading variable type X-Git-Tag: php-7.4.0alpha1~1241 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c21ce5b2ecf118a34247971f8582ae0d1853894;p=php Fix misleading variable type We port libgd/libgd@0414bb2da0b27d90b6125bd34a3e2cfb89fd3f42. --- diff --git a/ext/gd/libgd/gd_interpolation.c b/ext/gd/libgd/gd_interpolation.c index 138d2bf3b2..ba5db679b0 100644 --- a/ext/gd/libgd/gd_interpolation.c +++ b/ext/gd/libgd/gd_interpolation.c @@ -1321,8 +1321,8 @@ static gdImagePtr gdImageScaleBilinearTC(gdImagePtr im, const unsigned int new_w gdFixed f_j = gd_itofx(j); gdFixed f_a = gd_mulfx(f_i, f_dy); gdFixed f_b = gd_mulfx(f_j, f_dx); - const gdFixed m = gd_fxtoi(f_a); - const gdFixed n = gd_fxtoi(f_b); + const long m = gd_fxtoi(f_a); + const long n = gd_fxtoi(f_b); gdFixed f_f = f_a - gd_itofx(m); gdFixed f_g = f_b - gd_itofx(n);