Permalink
Browse files

[Security] Fix PHP #75139 suspicious ternary

  • Loading branch information...
fredemmott committed Dec 18, 2017
1 parent e33bffb commit 31c7a8102956db036d8961357029d8e69fb92b22
Showing with 2 additions and 2 deletions.
  1. +2 −2 hphp/runtime/ext/gd/libgd/gd_interpolation.cpp
@@ -1660,8 +1660,8 @@ gdImagePtr gdImageRotateGeneric(gdImagePtr src, const float degrees, const int b
const gdFixed f_slop_y = f_sin;
const gdFixed f_slop_x = f_cos;
const gdFixed f_slop = f_slop_x > 0 && f_slop_x > 0 ?
f_slop_x > f_slop_y ? gd_divfx(f_slop_y, f_slop_x) : gd_divfx(f_slop_x, f_slop_y)
const gdFixed f_slop = f_slop_x > 0 && f_slop_y > 0 ?
(f_slop_x > f_slop_y ? gd_divfx(f_slop_y, f_slop_x) : gd_divfx(f_slop_x, f_slop_y))
: 0;

0 comments on commit 31c7a81

Please sign in to comment.