Skip to content

Commit 721a7de

Browse files
authored
Fix recently introduced build warning (#7745)
1 parent d7652c9 commit 721a7de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firestore/core/src/timestamp_internal.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ util::StatusOr<Timestamp> TimestampInternal::FromUntrustedTime(
3030
// `nanos` calculated below always non-negative, meeting protobuf's
3131
// requirement.
3232
int64_t seconds = absl::ToUnixSeconds(time);
33-
int32_t nanos =
34-
(time - absl::FromUnixSeconds(seconds)) / absl::Nanoseconds(1);
33+
int32_t nanos = static_cast<int32_t>((time - absl::FromUnixSeconds(seconds)) /
34+
absl::Nanoseconds(1));
3535
return FromUntrustedSecondsAndNanos(seconds, nanos);
3636
}
3737

0 commit comments

Comments
 (0)