Skip to content

Commit a18c7c5

Browse files
committed
- upgraded to 1.1-rc-91
- fixed Short.toUInt() bug
1 parent f15009c commit a18c7c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath(kotlinModule("gradle-plugin", "1.1.0-beta-38"))
8+
classpath(kotlinModule("gradle-plugin", "1.1.0-rc-91"))
99
}
1010
}
1111

@@ -19,6 +19,6 @@ repositories {
1919
}
2020

2121
dependencies {
22-
compile(kotlinModule("stdlib", "1.1.0-beta-38"))
22+
compile(kotlinModule("stdlib", "1.1.0-rc-91"))
2323
testCompile("io.kotlintest:kotlintest:1.3.5")
2424
}

src/main/kotlin/unsigned/Short.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import kotlin.experimental.xor
1212

1313

1414
fun Short.toUByte() = toByte()
15-
fun Short.toUInt() = toInt() and 0xff
15+
fun Short.toUInt() = toInt() and 0xffff
1616
fun Short.toULong() = toUInt().toLong()
1717
fun Short.toBigInt() = BigInteger.valueOf(toULong())
1818

0 commit comments

Comments
 (0)