Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
eymar committed Jan 13, 2023
1 parent 6d13a12 commit 5caa3d7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ import org.khronos.webgl.Int32Array
import org.khronos.webgl.Uint8Array
import org.khronos.webgl.get

internal actual fun ByteArray.putBytesInto(array: IntArray, offset: Int, length: Int): Unit =
val byteBuffer = Uint8Array(toTypedArray()).buffer
internal actual fun ByteArray.putBytesInto(array: IntArray, offset: Int, length: Int): Unit {
val byteBuffer = Uint8Array(this.toTypedArray()).buffer
val intArray = Int32Array(byteBuffer, offset, length)
for(i in 0 until intArray.length) {
for (i in 0 until intArray.length) {
array[i] = intArray[i]
}
}

0 comments on commit 5caa3d7

Please sign in to comment.