Skip to content

Commit d7c99ec

Browse files
committed
⬆️
- Kotlin 1.2.30 eap 16 - Gradle 4.5.1 - Lwjgl 3.1.6
1 parent 75b21e9 commit d7c99ec

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ group = 'com.github.kotlin-graphics'
1212

1313
buildscript {
1414

15-
ext.kotlinVersion = '1.2.21'
15+
ext.kotlinVersion = '1.2.30-eap-16'
1616

1717
repositories {
1818
mavenCentral()
@@ -34,7 +34,7 @@ dependencies {
3434

3535
testCompile 'io.kotlintest:kotlintest:2.0.7'
3636

37-
compile 'com.github.kotlin-graphics:gln:0b363d857569132cf5acd6f0dd28cc160d5ed09e'
37+
compile 'com.github.kotlin-graphics:gln:b67492856d51b6c30e9ef733e7148787fddecf92'
3838

3939
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
4040

@@ -55,7 +55,7 @@ dependencies {
5555
ext.lwjglNatives = "natives-macos"
5656
break
5757
}
58-
ext.lwjglVersion = "3.1.5-SNAPSHOT"
58+
ext.lwjglVersion = "3.1.6-SNAPSHOT"
5959
compile "org.lwjgl:lwjgl:${lwjglVersion}"
6060
compile "org.lwjgl:lwjgl-glfw:${lwjglVersion}"
6161
compile "org.lwjgl:lwjgl-jemalloc:${lwjglVersion}"

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip

src/main/kotlin/uno/glfw/glfw.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ object glfw {
2626

2727
val primaryMonitor get() = glfwGetPrimaryMonitor()
2828

29-
val videoMode get() = glfwGetVideoMode(primaryMonitor)
29+
val videoMode get() = glfwGetVideoMode(primaryMonitor)!!
3030

3131
var start = System.nanoTime()
3232
val time get() = (System.nanoTime() - start) / 1e9f

src/main/kotlin/uno/kotlin/buffers/TimSort.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ object TimSort {
789789
else
790790
newSize = Math.min(newSize, a.capacity ushr 1)
791791

792-
val newArray = MemoryUtil.memRealloc(a, newSize)
792+
val newArray = MemoryUtil.memRealloc(a, newSize)!!
793793
tmp = newArray
794794
tmpLen = newSize
795795
tmpBase = 0

src/main/kotlin/uno/kotlin/buffers/intBuffer.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -802,19 +802,19 @@ inline fun IntBuffer.copyOfRange(fromIndex: Int, toIndex: Int): IntBuffer {
802802
}
803803

804804
operator fun IntBuffer.plus(element: Int): IntBuffer {
805-
val dst = memRealloc(this, capacity + 1)
805+
val dst = memRealloc(this, capacity + 1)!!
806806
dst[capacity] = element
807807
return dst
808808
}
809809

810810
operator fun IntBuffer.plus(elements: Collection<Int>): IntBuffer {
811-
val dst = memRealloc(this, capacity + elements.size)
811+
val dst = memRealloc(this, capacity + elements.size)!!
812812
for (i in 0 until elements.size) dst[capacity + i] = elements.elementAt(i)
813813
return dst
814814
}
815815

816816
operator fun IntBuffer.plus(elements: IntBuffer): IntBuffer {
817-
val dst = memRealloc(this, capacity + elements.capacity)
817+
val dst = memRealloc(this, capacity + elements.capacity)!!
818818
for (i in 0 until elements.size) dst[capacity + i] = elements.elementAt(i)
819819
return dst
820820
}

0 commit comments

Comments
 (0)