https://bugzilla.novell.com/show_bug.cgi?id=440046


           Summary: `(int**) 0xdeadbeaf' yields 0xffffffffdeadbeaf, not
                    0x00000000deadbeaf
           Product: Mono: Runtime
           Version: SVN
          Platform: x86-64
        OS/Version: openSUSE 11.0
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: mono-bugs@lists.ximian.com
          Found By: ---


The following test case:

=====
using System;

unsafe class Program
{
        static void Main (string[] args)
        {
                int** dead = (int**) 0xdeadbeaf;
                Console.WriteLine ("TEST: {0:x}", new IntPtr (dead).ToInt64
());
        }
}
=====

Prints 'ffffffffdeadbeaf' when run on Mono and 'deadbeaf' when run on .NET.

The same happens if you run the mcs-generated assembly on .NET or the
csc-generated one on Mono.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to