[profiles] Fix MOBILE assemblies and tests compilation + Rename MOBILE to AOT_HYBRID
[mono.git] / mcs / class / corlib / System / UIntPtr.cs
index 1070563aca0017d6df71cfa04b7b79f8905785c8..3d0fd967aa9983a6d0c58c00f8287b049e60da9e 100644 (file)
@@ -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