Skip to content

Commit

Permalink
r.slope.aspect: fix logical test for printing north (#2157)
Browse files Browse the repository at this point in the history
Addresses a -Wtautological-overlap-compare compiler warning.
  • Loading branch information
nilason committed Mar 2, 2022
1 parent 8d20f20 commit 114e87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raster/r.slope.aspect/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ int main(int argc, char *argv[])
}
else {
for (i = ceil(max_asp); i >= 1; i--) {
if (i == 0 && i == 360)
if (i == 0 || i == 360)
sprintf(buf, "north");
else if (i == 45)
sprintf(buf, "north-east");
Expand Down

0 comments on commit 114e87b

Please sign in to comment.