Skip to content

Commit 010cf6c

Browse files
committed
trigger GH Actions
1 parent 272af92 commit 010cf6c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/main/kotlin/unsigned/Ubyte.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

src/main/kotlin/unsigned/Uint.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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())

src/main/kotlin/unsigned/Ushort.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)