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
@@ -25,11 +25,7 @@ interface DataSink {
|
||||
}
|
||||
|
||||
inline fun <reified T:Any>DataSink.writeNumber(value: T) {
|
||||
when(value) {
|
||||
is Float -> writeFloat(value)
|
||||
is Double -> writeDouble(value)
|
||||
else -> Smartint.encode(value, this)
|
||||
}
|
||||
Smartint.encode(value, this)
|
||||
}
|
||||
|
||||
fun DataSink.writeI32(value: Int) {
|
||||
|
||||
Reference in new issue
Block a user