From 97f6cf8796de99f8cae196b9043ec2c9104f7bdd Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Mon, 18 Mar 2024 02:26:03 +0900 Subject: [PATCH] chore: revert code style changes --- .../org/jetbrains/compose/resources/ResourceReader.wasmJs.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/resources/library/src/wasmJsMain/kotlin/org/jetbrains/compose/resources/ResourceReader.wasmJs.kt b/components/resources/library/src/wasmJsMain/kotlin/org/jetbrains/compose/resources/ResourceReader.wasmJs.kt index 3ad4522b7d..02ecedd54b 100644 --- a/components/resources/library/src/wasmJsMain/kotlin/org/jetbrains/compose/resources/ResourceReader.wasmJs.kt +++ b/components/resources/library/src/wasmJsMain/kotlin/org/jetbrains/compose/resources/ResourceReader.wasmJs.kt @@ -81,7 +81,8 @@ internal external fun jsExportInt8ArrayToWasm(src: Int8Array, size: Int, dstAddr internal fun jsInt8ArrayToKotlinByteArray(x: Int8Array): ByteArray { val size = x.length - @OptIn(UnsafeWasmMemoryApi::class) return withScopedMemoryAllocator { allocator -> + @OptIn(UnsafeWasmMemoryApi::class) + return withScopedMemoryAllocator { allocator -> val memBuffer = allocator.allocate(size) val dstAddress = memBuffer.address.toInt() jsExportInt8ArrayToWasm(x, size, dstAddress)