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 Jan 9, 2024
1 parent 5272d9d commit ea7c943
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 ea7c943

Please sign in to comment.