BenWoodworth / knbt

Kotlin NBT library for kotlinx.serialization
GNU Lesser General Public License v3.0
72 stars 2 forks source link

Floats are decoded as Doubles on Kolin/JS #3

Closed BenWoodworth closed 3 years ago

BenWoodworth commented 3 years ago

Seems like an issue with Kotlin/JS itself, since all numbers are stored as Doubles in Javascript: KT-35422

BinaryNbtReaderTest.Should_decode_uncompressed_bigtest_nbt_to_class_correctly failed:

Structures are not equal.
level.floatTest: Expected <0.49823147>, actual <0.4982314705848694>.
BenWoodworth commented 3 years ago

Closing because this is an issue with Kotlin/JS