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

Martin Baulig martin at ximian.com
Tue Dec 7 14:06:17 EST 2004


On Mon, 2004-12-06 at 16:41 +0100, Paolo Molaro wrote:

> > Index: mono/metadata/debug-mono-symfile.h
> > @@ -112,7 +113,7 @@
> >  
> >  struct MonoDebugLineNumberEntry {
> >  	guint32 offset;
> > -	guint32 address;
> > +	uintptr_t address;
> 
> Unfortunately the names here are confusing: this is not a pointer-sized
> address, it is actually the offset in the native code from the start of
> the method (at least after a quick look at the code). So that change is not
> needed.

This one is not only not needed, it'd be broken.

The MonoDebugLineNumberEntry struct comes from the symbol file - and the
symbol file will always have two 4-byte integers.

Martin





More information about the Mono-devel-list mailing list