[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user