]> granicus.if.org Git - php/commitdiff
Fix misleading variable type
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 10 Jan 2019 23:21:44 +0000 (00:21 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 10 Jan 2019 23:21:44 +0000 (00:21 +0100)
We port libgd/libgd@0414bb2da0b27d90b6125bd34a3e2cfb89fd3f42.

ext/gd/libgd/gd_interpolation.c

index 138d2bf3b248e308440a68f44e7657768b064512..ba5db679b03ff40e2caaa869a88ac27a827ef7f0 100644 (file)
@@ -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);