Re: [AD] warnings when using VC 7 (.net) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> Just out of curiosity: is there any compelling reason addr can't be a
> void* in either of those cases?
void pointer arithmetic is undefined so using it for address calculation is
painful.
> Regardless, I *think* using ptrdiff_t instead of unsigned long *should*
> fix the problem. (It must be large enough to hold the whole range of
> pointer differences, which would be of the order of 2**64 on 64 bit
> systems. IIRC, it is defined as (signed) long by DJGPP.)
Is it ISO C ?
--
Eric Botcazou