grass
grass copied to clipboard
MSVC: Fix pointer arithmetic
Replaces #354
I didn't reason if it was needed or not, but it is enough to close #354, as this is updated, mergeable, and reviewable.
Note that the changes in lib/raster3d/mask.c might not be needed anymore if the current code was enough, but I included them for the review anyways. See https://github.com/OSGeo/grass/pull/354#discussion_r2030204247, https://github.com/OSGeo/grass/pull/354#discussion_r2030204355, https://github.com/OSGeo/grass/pull/354#discussion_r2030204410