Skip to content

Commit

Permalink
i.edge
Browse files Browse the repository at this point in the history
do not compare signed and unsigned integers
  • Loading branch information
metzm committed Mar 1, 2021
1 parent 6d7ca65 commit 958f166
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion grass7/imagery/i.edge/canny.c
Expand Up @@ -337,7 +337,7 @@ void performHysteresis(CELL * edges, CELL * magnitude, int low, int high,

void thresholdEdges(CELL * edges, int rows, int cols)
{
int i;
size_t i;
size_t max = (size_t)rows * cols;

for (i = 0; i < max; i++) {
Expand Down
6 changes: 3 additions & 3 deletions grass7/imagery/i.edge/main.c
Expand Up @@ -134,7 +134,7 @@ int main(int argc, char *argv[])
static const int MAGNITUDE_LIMIT = 1000;

int lowThreshold, highThreshold, low, high;
int nrows, ncols;
int nrows, ncols, i;
size_t dim_2;
DCELL *mat1;

Expand Down Expand Up @@ -270,7 +270,7 @@ int main(int argc, char *argv[])

outrast = Rast_allocate_buf(CELL_TYPE);
Rast_set_c_null_value(outrast, ncols);
for (r = 0; r < nrows; r++) {
for (i = 0; i < nrows; i++) {
Rast_put_row(outfd, outrast, CELL_TYPE);
}

Expand All @@ -283,7 +283,7 @@ int main(int argc, char *argv[])
if (anglesMapName) {
outfd = Rast_open_new(anglesMapName, CELL_TYPE);

for (r = 0; r < nrows; r++) {
for (i = 0; i < nrows; i++) {
Rast_put_row(outfd, outrast, CELL_TYPE);
}

Expand Down

0 comments on commit 958f166

Please sign in to comment.