Re: [AD] warnings when using VC 7 (.net) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Allegro Developers list <conductors@xxxxxxxxxx>
- Subject: Re: [AD] warnings when using VC 7 (.net)
- From: Evert Glebbeek <eglebbk@xxxxxxxxxx>
- Date: Sun, 6 Oct 2002 14:25:32 +0200
- Invalid-uucp-from: From eglebbk@xxxxxxxxxx Sun Oct 6 22:36:53 2002
- Organization: University of Amsterdam
> void pointer arithmetic is undefined so using it for address calculation
> is painful.
Ok, fair enough.
I assume using a char* isn't really an option either?
> > 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 ?
As far as I know, yes, but I don't have the specs at hand and can't test
with anything other than gcc. It doesn't complain even when using
-pedantic.
It *should* be defined in stddef.h