[GRASS5] PATCH: int => size_t

Glynn Clements glynn at gclements.plus.com
Thu May 5 23:10:12 EDT 2005


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 at gclements.plus.com>




More information about the grass-dev mailing list