Make MIN_VALUE and MAX_VALUE of unsigned types actual constants

This commit is contained in:
Ilya Gorbunov
2018-06-29 19:54:46 +03:00
parent 7a208c3e01
commit 3349976279
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -17,12 +17,12 @@ public inline class UInt internal constructor(private val data: Int) : Comparabl
/**
* A constant holding the minimum value an instance of UInt can have.
*/
public /*const*/ val MIN_VALUE: UInt = UInt(0)
public const val MIN_VALUE: UInt = UInt(0)
/**
* A constant holding the maximum value an instance of UInt can have.
*/
public /*const*/ val MAX_VALUE: UInt = UInt(-1)
public const val MAX_VALUE: UInt = UInt(-1)
}
/**