Skip to content

Commit

Permalink
Fix an integer comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
HuidaeCho committed Jun 5, 2023
1 parent c3c4250 commit 92c9936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raster/r.watershed/ram/init_vars.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ int init_vars(int argc, char *argv[])
}
Rast_close(fd);
G_free(elebuf);
MASK_flag = (do_points < nrows * ncols);
MASK_flag = (do_points < (size_t)nrows * ncols);

/* read flow accumulation from input map flow: amount of overland flow per
* cell */
Expand Down

0 comments on commit 92c9936

Please sign in to comment.