mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 09:50:16 +08:00
Fix build
This commit is contained in:
parent
85b72ac4b8
commit
b85c91b25d
@ -502,8 +502,7 @@ class Jce private constructor(private val charset: JceCharset, context: SerialMo
|
||||
internal val leastRemaining = input.remaining - maxReadSize
|
||||
internal val isEndOfInput: Boolean get() = input.remaining <= leastRemaining
|
||||
|
||||
internal var currentJceHead: JceHead? = input.doReadHead().also {
|
||||
// println("first jce head = $it") }
|
||||
internal var currentJceHead: JceHead? = input.doReadHead()
|
||||
|
||||
override fun close() = input.close()
|
||||
|
||||
@ -597,8 +596,7 @@ class Jce private constructor(private val charset: JceCharset, context: SerialMo
|
||||
val head = readHead()
|
||||
readHead()
|
||||
check(head.type.toInt() == 0) { "type mismatch" }
|
||||
input.readBytes(readInt(0).also {
|
||||
// println("list size=$it") })
|
||||
input.readBytes(readInt(0))
|
||||
}
|
||||
else -> error("type mismatch")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user