Re: [AD] bugfix in floodfill() |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> It buys us that floodfill works with bitmaps with 32768<=width<65536 or
> 32768<=height<65536. Probably most other functions work with such
> bitmaps. And it doesn't un-buy us anything, anyway.
Can't we use the flood() function with negative coordinates too?
> Oh, but now that we have int's, this can't happen: the int is an array
> index, and the language guarantees that no array is so big that an int
> can't index it.
Are you sure? I find only "the expression shall have an integer type" in ISO
C99. Moreover, there is no array in flood.c at all, only a pointer to
scratch mem.
--
Eric Botcazou