Fix fixToString

This commit is contained in:
Him188 2020-04-02 21:25:52 +08:00
parent f8e0f27fc5
commit 42595a37b0

View File

@ -184,7 +184,7 @@ internal operator fun ByteArray.get(range: IntRange): String = buildString {
private fun Byte.fixToString(): String {
return when (this.toInt()) {
in 0..15 -> "0${this.toString(16)}"
else -> this.toString(16)
in 0..15 -> "0${this.toString(16).toUpperCase()}"
else -> this.toString(16).toUpperCase()
}
}