Skip to content

Commit 33f2cc8

Browse files
convert int to double for android
1 parent 061aa30 commit 33f2cc8

File tree

1 file changed

+1
-1
lines changed
  • firebase-firestore/src/androidMain/kotlin/dev/gitlive/firebase/firestore

1 file changed

+1
-1
lines changed

firebase-firestore/src/androidMain/kotlin/dev/gitlive/firebase/firestore/firestore.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ actual class FieldPath private constructor(val android: com.google.firebase.fire
465465
actual object FieldValue {
466466
actual val serverTimestamp = Double.POSITIVE_INFINITY
467467
actual val delete: Any get() = FieldValue.delete()
468-
actual fun increment(value: Int): Any = FieldValue.increment(value)
468+
actual fun increment(value: Int): Any = FieldValue.increment(value.toDouble())
469469
actual fun arrayUnion(vararg elements: Any): Any = FieldValue.arrayUnion(*elements)
470470
actual fun arrayRemove(vararg elements: Any): Any = FieldValue.arrayRemove(*elements)
471471
actual fun delete(): Any = delete

0 commit comments

Comments
 (0)