We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34cbfaf commit a28d7c4Copy full SHA for a28d7c4
src/commonMain/kotlin/space/iseki/bencoding/FloatNumberStrategy.kt
@@ -37,7 +37,7 @@ enum class FloatNumberStrategy {
37
Disallow -> reportError("Double number is not allowed")
38
Rounded -> decodeLong().toDouble()
39
IntegerIEEE754 -> Double.fromBits(decodeLong())
40
- DecimalString -> decodeStringIso88591().toDouble()
+ DecimalString -> decodeString().toDouble()
41
}
42
43
@@ -57,7 +57,7 @@ enum class FloatNumberStrategy {
57
Disallow -> reportError("Float number is not allowed")
58
Rounded -> decodeLong().toFloat()
59
IntegerIEEE754 -> Float.fromBits(decodeInt())
60
- DecimalString -> decodeStringIso88591().toFloat()
+ DecimalString -> decodeString().toFloat()
61
62
63
0 commit comments