File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ class Ubyte(var v: Byte) : Number(), Comparable<Ubyte> {
2626 }
2727
2828 constructor (number: Number ) : this (number.toByte())
29- @JvmOverloads constructor (string: String , base: Int = 10 ) : this (string.filter { it != ' _' && it != ' \' ' }.parseUnsignedInt(base).toByte())
29+ @JvmOverloads
30+ constructor (string: String , base: Int = 10 ) : this (string.filter { it != ' _' && it != ' \' ' }.parseUnsignedInt(base).toByte())
3031
3132 override fun toByte () = v
3233 override fun toShort () = v.toUInt().toShort()
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ data class Uint(var v: Int = 0) : Number(), Comparable<Uint> {
2727
2828
2929 constructor (number: Number ) : this (number.toInt())
30- @JvmOverloads constructor (string: String , base: Int = 10 ) : this (string.filter { it != ' _' && it != ' \' ' }.parseUnsignedInt(base))
30+ @JvmOverloads
31+ constructor (string: String , base: Int = 10 ) : this (string.filter { it != ' _' && it != ' \' ' }.parseUnsignedInt(base))
3132
3233 override fun toByte () = v.toByte()
3334 override fun toShort () = v.toShort()
@@ -53,7 +54,7 @@ data class Uint(var v: Int = 0) : Number(), Comparable<Uint> {
5354 infix operator fun times (b : Uint ) = Uint (v * b.v)
5455 infix operator fun times (b : Int ) = Uint (v * b)
5556
56- infix operator fun div (b : Uint ) = Uint (v udiv b.toInt())
57+ infix operator fun div (b : Uint ) = Uint (v udiv b.toInt())
5758 infix operator fun div (b : Int ) = Uint (v udiv b)
5859
5960 infix operator fun rem (b : Uint ) = Uint (v urem b.toInt())
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ data class Ushort(var v: Short = 0) : Number(), Comparable<Ushort> {
3030 }
3131
3232 constructor (number: Number ) : this (number.toShort())
33- @JvmOverloads constructor (string: String , base: Int = 10 ) :
33+ @JvmOverloads
34+ constructor (string: String , base: Int = 10 ) :
3435 this (string.filter { it != ' _' && it != ' \' ' }.parseUnsignedInt(base).toShort())
3536
3637 override fun toByte () = v.toByte()
You can’t perform that action at this time.
0 commit comments