[Wasm] stdlib API: Mark internal compareTo functions as internal

Default public visibility was a mistake.
They were not intended to be public.
This commit is contained in:
Svyatoslav Kuzmich
2023-01-21 09:36:06 +01:00
parent e109662cdc
commit 354b231ea2
@@ -7,8 +7,10 @@ package kotlin.wasm.internal
// `compareTo(x, y)` implemented as `(x >= y) - (x <= y)`
fun wasm_i32_compareTo(x: Int, y: Int): Int =
@PublishedApi
internal fun wasm_i32_compareTo(x: Int, y: Int): Int =
wasm_i32_ge_s(x, y).toInt() - wasm_i32_le_s(x, y).toInt()
fun wasm_i64_compareTo(x: Long, y: Long): Int =
@PublishedApi
internal fun wasm_i64_compareTo(x: Long, y: Long): Int =
wasm_i64_ge_s(x, y).toInt() - wasm_i64_le_s(x, y).toInt()