Skip to content

Commit

Permalink
Logical Operation && has no Impact on expression result .
Browse files Browse the repository at this point in the history
Line 1746:  second operand of  '&&' operator has no impact on expression result. 
It looks a typo mistake.
  • Loading branch information
jitendarKumar committed Nov 9, 2015
1 parent 4751b60 commit dd48286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gd_interpolation.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1743,7 +1743,7 @@ gdImageRotateGeneric(gdImagePtr src, const float degrees, const int bgColor)


const gdFixed f_slop_y = f_sin; const gdFixed f_slop_y = f_sin;
const gdFixed f_slop_x = f_cos; const gdFixed f_slop_x = f_cos;
const gdFixed f_slop = f_slop_x > 0 && f_slop_x > 0 ? 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) f_slop_x > f_slop_y ? gd_divfx(f_slop_y, f_slop_x) : gd_divfx(f_slop_x, f_slop_y)
: 0; : 0;


Expand Down

0 comments on commit dd48286

Please sign in to comment.