Skip to content

Commit

Permalink
r.horizon: fix computation in test_low_res() (#3298)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Jan 5, 2024
1 parent 51e2703 commit 58318e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raster/r.horizon/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ int test_low_res(void)
else if (sinangle < 0.) {
sy = yy0 * invstepy + offsety;
dely = floor(
fabs((floor(jp / 100.) - (sy / 100.)) * distsinangle));
fabs((floor(sy / 100.) - (sy / 100.)) * distsinangle));
}

mindel = min(delx, dely);
Expand Down

0 comments on commit 58318e8

Please sign in to comment.