[GRASS5] PATCH: int => size_t

The attached patch is of primary interest to 64-bit boxen (read: me),
but is also of interest for Large File Support on account of
G_raster_size().

Any objections to me applying this?

--
Brad Douglas <rez@touchofmadness.com>

(attachments)

alloc.patch (2.24 KB)

Brad Douglas wrote:

The attached patch is of primary interest to 64-bit boxen (read: me),
but is also of interest for Large File Support on account of
G_raster_size().

Any objections to me applying this?

Yes. Changing the return type of G_raster_size() to size_t will affect
calculations involving negative numbers; please use ssize_t instead.

OTOH, the changes to the *alloc functions seem OK.

Also, I don't see how this relates to LFS; that depends upon off_t,
not size_t.

--
Glynn Clements <glynn@gclements.plus.com>