This commit is contained in:
WhiteChi 2023-11-25 18:31:08 +08:00
parent 2d57dc021d
commit 5ea260c24b

View File

@ -50,7 +50,7 @@ val ProtoValue.asLong: Long
get() = (this as ProtoNumber).value.toLong()
val ProtoValue.asULong: Long
get() = (this as ProtoNumber).value.toLong() and 0xFFFFFFFFL
get() = (this as ProtoNumber).value.toLong() and Long.MAX_VALUE
val ProtoValue.asMap: ProtoMap
get() = (this as ProtoMap)