[Mono-devel-list] Compiler Warnings AMD64 - final
Willibald.Krenn at gmx.at
Thu Dec 9 12:21:28 EST 2004
Martin Baulig schrieb:
> well, I thought gssize was always the size of a pointer - so I went
> through gssize to prevent the compiler warning.
I've already asked on this list whether gssize is always sizeof(void*),
but response wasn't 'yes, definitely'. (Although it is 64 bits here.)
AFAIK uintptr_t and intptr_t are guaranteed to be in pointer size - at
least that's what I'm using in my patch.
Normally stdint.h defines these types, but as we can not guarantee that
this header file is available, I've chosen to re-define these types in
intps.h (which is part of my patch). Basically I've just mapped these
types to g[u]int32/64...
So some (uintptr_t) cast should always work from pointer to unsigned
intX without giving compiler warnings..
> I'd really appreciate it if you could have a look at this ...
More information about the Mono-devel-list