X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem%2FUIntPtr.cs;h=3d0fd967aa9983a6d0c58c00f8287b049e60da9e;hb=d8693e0c73388503c06ebc009b753ef1488924af;hp=1070563aca0017d6df71cfa04b7b79f8905785c8;hpb=20d845ca07479ece43da9e344c060e49887fd369;p=mono.git diff --git a/mcs/class/corlib/System/UIntPtr.cs b/mcs/class/corlib/System/UIntPtr.cs index 1070563aca0..3d0fd967aa9 100644 --- a/mcs/class/corlib/System/UIntPtr.cs +++ b/mcs/class/corlib/System/UIntPtr.cs @@ -104,7 +104,7 @@ namespace System public override string ToString () { - return ((uint) _pointer).ToString(); + return UIntPtr.Size < 8 ? ((uint) _pointer).ToString() : ((ulong) _pointer).ToString(); } // Interface ISerializable