mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 06:10:30 +08:00
Fix fixToString
This commit is contained in:
parent
f8e0f27fc5
commit
42595a37b0
@ -184,7 +184,7 @@ internal operator fun ByteArray.get(range: IntRange): String = buildString {
|
|||||||
|
|
||||||
private fun Byte.fixToString(): String {
|
private fun Byte.fixToString(): String {
|
||||||
return when (this.toInt()) {
|
return when (this.toInt()) {
|
||||||
in 0..15 -> "0${this.toString(16)}"
|
in 0..15 -> "0${this.toString(16).toUpperCase()}"
|
||||||
else -> this.toString(16)
|
else -> this.toString(16).toUpperCase()
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user