[Mono-devel-list] (AMD64) Compiler Warnings (2)

Dan Winship danw at novell.com
Thu Dec 2 16:10:44 EST 2004

On Thu, 2004-12-02 at 20:01 +0100, Willibald Krenn wrote:
> Hi!
> After looking at glib, it seems that gssize is like intptr_t and changes 
> size between 32 and 64 bit code. I probably could use that as 
> replacement and get rid of stdint.h..

IIRC, gssize is just a wrapper around ssize_t, and is not necessarily
guaranteed to correspond to any other particular size (although IIRC,
glib does assume that sizeof(gssize) >= sizeof(gpointer).)

Re: the patch, first off, if you are going to have whitespace changes,
you should use "diff -w", so that people reviewing the diff don't have
to wade through irrelevant changes.

As for the actual changes, glib already provides macros for this which
already DTRT in 32-bit and 64-bit environments, GINT_TO_POINTER,

-- Dan

More information about the Mono-devel-list mailing list