Skip to content

Commit

Permalink
r.geomorphon
Browse files Browse the repository at this point in the history
fix compiler warnings
  • Loading branch information
metzm committed Nov 13, 2019
1 parent 7b04f03 commit 94b2c08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion raster/r.geomorphon/main.c
Expand Up @@ -501,7 +501,7 @@ int main(int argc, char **argv)
for (i = 0; i < 5; ++i) {
multiple_output[i].forms_buffer = Rast_allocate_buf(CELL_TYPE);
strcpy(multiple_output[i].name, prefix);
strcat(multiple_output[11].name, postfixes[i]);
strcat(multiple_output[i].name, postfixes[i]);
multiple_output[i].fd =
Rast_open_new(multiple_output[i].name, CELL_TYPE);
}
Expand Down
2 changes: 1 addition & 1 deletion raster/r.geomorphon/multires.c
Expand Up @@ -17,6 +17,6 @@ int pattern_matching(int *pattern)
test = (binary << i) | (binary >> (8 - i));
result = (result < test) ? result : test;
}
return (result & source == source) ? 1 : 0;
return ((result & source) == source) ? 1 : 0;

}

0 comments on commit 94b2c08

Please sign in to comment.