Skip to content

Commit b3253f7

Browse files
committed
[stdlib] Changed uintValue to a var
Fixes rdar://problem/18469215 Swift SVN r24118
1 parent 0280837 commit b3253f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/core/Reflection.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public struct ObjectIdentifier : Hashable, Comparable {
3131

3232
/// Convert to a `UInt` that captures the full value of `self`.
3333
///
34-
/// Axiom: `a.uintValue() == b.uintValue()` iff `a == b`
35-
public func uintValue() -> UInt {
34+
/// Axiom: `a.uintValue == b.uintValue` iff `a == b`
35+
public var uintValue: UInt {
3636
return UInt(Builtin.ptrtoint_Word(value))
3737
}
3838

@@ -60,7 +60,7 @@ public struct ObjectIdentifier : Hashable, Comparable {
6060
}
6161

6262
public func <(lhs: ObjectIdentifier, rhs: ObjectIdentifier) -> Bool {
63-
return lhs.uintValue() < rhs.uintValue()
63+
return lhs.uintValue < rhs.uintValue
6464
}
6565

6666
public func ==(x: ObjectIdentifier, y: ObjectIdentifier) -> Bool {

0 commit comments

Comments
 (0)