projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[corlib] Make primitive types smaller than int compare result compatible
[mono.git]
/
mcs
/
class
/
corlib
/
System
/
UInt16.cs
diff --git
a/mcs/class/corlib/System/UInt16.cs
b/mcs/class/corlib/System/UInt16.cs
index 3dbed2e151d12d26124fb1040107d96a1dab7a01..42ceeb7205aa99308d3bf731df0415edcb7528f1 100644
(file)
--- a/
mcs/class/corlib/System/UInt16.cs
+++ b/
mcs/class/corlib/System/UInt16.cs
@@
-49,7
+49,7
@@
namespace System
if(!(value is System.UInt16))
throw new ArgumentException (Locale.GetText ("Value is not a System.UInt16."));
- return
this.m_value -
((ushort) value);
+ return
CompareTo
((ushort) value);
}
public override bool Equals (object obj)