support for @Unsigned fields and fox bad error of kotlinjs x is Float glitch: it returns true for integers
This commit is contained in:
1 parent
6bc01e9534
commit
0e8f3daf99
7 files changed
+103
-30
No files matched your search
@@ -13,7 +13,7 @@ interface DataSource {
|
||||
/**
|
||||
* Exception that implementations must throw on end of data
|
||||
*/
|
||||
class EndOfData() : Exception("no more data available")
|
||||
class EndOfData: Exception("no more data available")
|
||||
|
||||
fun readByte(): Byte
|
||||
|
||||
@@ -51,3 +51,4 @@ inline fun <reified T : Any> DataSource.readNumber(): T = when(typeOf<T>()) {
|
||||
typeOf<Float>() -> readFloat() as T
|
||||
else -> Smartint.decode(this)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user