Skip to content

Commit 2763108

Browse files
convert int to long for ios
1 parent 33f2cc8 commit 2763108

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ actual class FieldPath private constructor(val ios: FIRFieldPath) {
438438
actual object FieldValue {
439439
actual val serverTimestamp = Double.POSITIVE_INFINITY
440440
actual val delete: Any get() = FIRFieldValue.fieldValueForDelete()
441-
actual fun increment(value: Int): Any = FIRFieldValue.fieldValueForIntegerIncrement(value)
441+
actual fun increment(value: Int): Any = FIRFieldValue.fieldValueForIntegerIncrement(value.toLong())
442442
actual fun arrayUnion(vararg elements: Any): Any = FIRFieldValue.fieldValueForArrayUnion(elements.asList())
443443
actual fun arrayRemove(vararg elements: Any): Any = FIRFieldValue.fieldValueForArrayRemove(elements.asList())
444444
actual fun delete(): Any = delete

0 commit comments

Comments
 (0)