Skip to content

Commit b30fa63

Browse files
committed
- separated unsigned primitive tests
- fixed #issue13
1 parent 1a060d8 commit b30fa63

File tree

10 files changed

+594
-560
lines changed

10 files changed

+594
-560
lines changed

.idea/libraries/Gradle__junit_junit_4_12.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.idea/modules/kotlin-unsigned.iml

Lines changed: 18 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies {
2323

2424
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
2525

26-
testImplementation'io.kotlintest:kotlintest-runner-junit5:3.0.6'
26+
testImplementation'io.kotlintest:kotlintest-runner-junit5:3.1.0'
2727
}
2828

2929
repositories {

src/main/kotlin/unsigned/java_1_7/long.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ internal fun Long.formatUnsignedLong(shift: Int, buf: CharArray, offset: Int, le
186186
val radix = 1 shl shift
187187
val mask = radix - 1
188188
do {
189-
buf[offset + --charPos] = digits[toInt() and mask]
189+
buf[offset + --charPos] = digits[_this.toInt() and mask]
190190
_this = _this ushr shift
191191
} while (_this != 0L && charPos > 0)
192192

0 commit comments

Comments
 (0)