diff --git a/mordant/src/nativeMain/kotlin/com/github/ajalt/mordant/internal/MppImpl.kt b/mordant/src/nativeMain/kotlin/com/github/ajalt/mordant/internal/MppImpl.kt index a960427a4..61caa4291 100644 --- a/mordant/src/nativeMain/kotlin/com/github/ajalt/mordant/internal/MppImpl.kt +++ b/mordant/src/nativeMain/kotlin/com/github/ajalt/mordant/internal/MppImpl.kt @@ -38,7 +38,7 @@ internal actual fun codepointSequence(string: String): Sequence = sequence yield(Char.toCodePoint(string[i], string[i + 1])) i += 1 } else { - yield(string[i].toInt()) + yield(string[i].code) } i += 1 }