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 bc46dad commit 7ce7eb9Copy full SHA for 7ce7eb9
firebase-common-internal/src/commonMain/kotlin/dev/gitlive/firebase/internal/decoders.kt
@@ -219,7 +219,7 @@ private fun decodeShort(value: Any?) = when(value) {
219
220
private fun decodeBoolean(value: Any?) = when (value) {
221
is Boolean -> value
222
- is Number -> value != 0
+ is Number -> value.toInt() != 0
223
is String -> value.toBoolean()
224
else -> throw SerializationException("Expected $value to be boolean")
225
}
0 commit comments