aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/test/firebase/firestore/local
diff options
context:
space:
mode:
authorGravatar rsgowman <rgowman@google.com>2018-06-22 16:17:25 -0400
committerGravatar GitHub <noreply@github.com>2018-06-22 16:17:25 -0400
commit137ce37363d72ac1d643ea9f93bc6e6665367e57 (patch)
treec96389a43420fca8cf17387bfcd244f49f716990 /Firestore/core/test/firebase/firestore/local
parent2e4855911c436b608eb6e1372ac26ca7165eec4e (diff)
Fix a few implicit converstion warnings (#1439)
Were showing up in xcode build (but not cmake build)
Diffstat (limited to 'Firestore/core/test/firebase/firestore/local')
-rw-r--r--Firestore/core/test/firebase/firestore/local/local_serializer_test.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/Firestore/core/test/firebase/firestore/local/local_serializer_test.cc b/Firestore/core/test/firebase/firestore/local/local_serializer_test.cc
index 76e2ef5..a4543ab 100644
--- a/Firestore/core/test/firebase/firestore/local/local_serializer_test.cc
+++ b/Firestore/core/test/firebase/firestore/local/local_serializer_test.cc
@@ -102,7 +102,8 @@ class LocalSerializerTest : public ::testing::Test {
EXPECT_EQ(type, model.type());
std::vector<uint8_t> bytes = EncodeMaybeDocument(&serializer, model);
firestore::client::MaybeDocument actual_proto;
- bool ok = actual_proto.ParseFromArray(bytes.data(), bytes.size());
+ bool ok = actual_proto.ParseFromArray(bytes.data(),
+ static_cast<int>(bytes.size()));
EXPECT_TRUE(ok);
EXPECT_TRUE(msg_diff.Compare(proto, actual_proto)) << message_differences;
}
@@ -112,7 +113,8 @@ class LocalSerializerTest : public ::testing::Test {
const firestore::client::MaybeDocument& proto,
MaybeDocument::Type type) {
std::vector<uint8_t> bytes(proto.ByteSizeLong());
- bool status = proto.SerializeToArray(bytes.data(), bytes.size());
+ bool status =
+ proto.SerializeToArray(bytes.data(), static_cast<int>(bytes.size()));
EXPECT_TRUE(status);
StatusOr<std::unique_ptr<MaybeDocument>> actual_model_status =
serializer.DecodeMaybeDocument(bytes);