Skip to content

Commit f510275

Browse files
committed
Code cleanup
1 parent c858085 commit f510275

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

windows_helper/src/main/kotlin/Extensions.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ private fun SegmentAllocator.allocateCStrings(vararg values: String) = slice_ref
4545
}
4646

4747
slice_ref_Vec_uint8.len(it, values.size.toLong())
48-
it.set(
49-
slice_ref_Vec_uint8.`ptr$layout`(),
50-
slice_ref_Vec_uint8.`ptr$offset`(),
51-
array.elements(Vec_uint8.`ptr$layout`()).findFirst().get()
52-
)
48+
slice_ref_Vec_uint8.ptr(it, array)
5349
}
5450

5551
object WindowsAPI : Arena by Arena.ofConfined() {

0 commit comments

Comments
 (0)