Skip to content

Commit 68b554b

Browse files
committed
- ⬆️ kt 1.2 b88
- renamed method parameter for matching overloaded function
1 parent 5e7469b commit 68b554b

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ apply plugin: 'com.github.johnrengelman.shadow'
99

1010
buildscript {
1111

12-
ext.kotlinVersion = '1.2.0-beta-31'
12+
ext.kotlinVersion = '1.2.0-beta-88'
1313

1414
repositories {
1515
jcenter() // shadow
@@ -27,7 +27,7 @@ dependencies {
2727

2828
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
2929

30-
compile 'com.github.kotlin-graphics:kotlin-unsigned:2dd9c3c02957cc21fc9da154ad50646359e572ad'
30+
compile 'com.github.kotlin-graphics:kotlin-unsigned:baa219820e77f07294deea6c9b5d9af9b5125c95'
3131

3232
testCompile 'com.github.elect86:kotlintest:43281b7e1b'
3333
}

src/main/kotlin/glm_/vec4/Vec4.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ class Vec4(x: Float, y: Float, z: Float, w: Float) : Vec4t<Float>(x, y, z, w) {
115115
}
116116

117117
override infix fun to(bytes: ByteBuffer) = to(bytes, bytes.position())
118-
override fun to(bytes: ByteBuffer, offset: Int): ByteBuffer {
119-
bytes.putFloat(offset, x)
120-
bytes.putFloat(offset + Float.BYTES, y)
121-
bytes.putFloat(offset + Float.BYTES * 2, z)
122-
bytes.putFloat(offset + Float.BYTES * 3, w)
118+
override fun to(bytes: ByteBuffer, index: Int): ByteBuffer {
119+
bytes.putFloat(index, x)
120+
bytes.putFloat(index + Float.BYTES, y)
121+
bytes.putFloat(index + Float.BYTES * 2, z)
122+
bytes.putFloat(index + Float.BYTES * 3, w)
123123
return bytes
124124
}
125125

src/main/kotlin/glm_/vec4/Vec4b.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ class Vec4b(x: Byte, y: Byte, z: Byte, w: Byte) : Vec4t<Byte>(x, y, z, w) {
7575
}
7676

7777
override infix fun to(bytes: ByteBuffer) = to(bytes, bytes.position())
78-
override fun to(bytes: ByteBuffer, offset: Int): ByteBuffer {
79-
bytes.put(offset, x)
80-
bytes.put(offset + Byte.BYTES, y)
81-
bytes.put(offset + Byte.BYTES * 2, z)
82-
bytes.put(offset + Byte.BYTES * 3, w)
78+
override fun to(bytes: ByteBuffer, index: Int): ByteBuffer {
79+
bytes.put(index, x)
80+
bytes.put(index + Byte.BYTES, y)
81+
bytes.put(index + Byte.BYTES * 2, z)
82+
bytes.put(index + Byte.BYTES * 3, w)
8383
return bytes
8484
}
8585

src/main/kotlin/glm_/vec4/Vec4s.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ class Vec4s(x: Short, y: Short, z: Short, w: Short) : Vec4t<Short>(x, y, z, w) {
109109
}
110110

111111
override infix fun to(bytes: ByteBuffer) = to(bytes, bytes.position())
112-
override fun to(bytes: ByteBuffer, offset: Int): ByteBuffer {
113-
bytes.putShort(offset, x)
114-
bytes.putShort(offset + Short.BYTES, y)
115-
bytes.putShort(offset + Short.BYTES * 2, z)
116-
bytes.putShort(offset + Short.BYTES * 3, w)
112+
override fun to(bytes: ByteBuffer, index: Int): ByteBuffer {
113+
bytes.putShort(index, x)
114+
bytes.putShort(index + Short.BYTES, y)
115+
bytes.putShort(index + Short.BYTES * 2, z)
116+
bytes.putShort(index + Short.BYTES * 3, w)
117117
return bytes
118118
}
119119

0 commit comments

Comments
 (0)