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 d7652c9 commit 721a7deCopy full SHA for 721a7de
Firestore/core/src/timestamp_internal.cc
@@ -30,8 +30,8 @@ util::StatusOr<Timestamp> TimestampInternal::FromUntrustedTime(
30
// `nanos` calculated below always non-negative, meeting protobuf's
31
// requirement.
32
int64_t seconds = absl::ToUnixSeconds(time);
33
- int32_t nanos =
34
- (time - absl::FromUnixSeconds(seconds)) / absl::Nanoseconds(1);
+ int32_t nanos = static_cast<int32_t>((time - absl::FromUnixSeconds(seconds)) /
+ absl::Nanoseconds(1));
35
return FromUntrustedSecondsAndNanos(seconds, nanos);
36
}
37
0 commit comments