summaryrefslogtreecommitdiff
blob: 15077bb1752abce85f4616ec7b62236b0c518efb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Fix building with Protocol Buffers >=3.18.

--- /src/dictionary/user_dictionary_storage.cc
+++ /src/dictionary/user_dictionary_storage.cc
@@ -108,7 +108,7 @@
   // wants to use more than 512MB.
   mozc::protobuf::io::IstreamInputStream zero_copy_input(&ifs);
   mozc::protobuf::io::CodedInputStream decoder(&zero_copy_input);
-  decoder.SetTotalBytesLimit(kDefaultTotalBytesLimit, -1);
+  decoder.SetTotalBytesLimit(kDefaultTotalBytesLimit);
   if (!user_dictionary_storage_base.ParseFromCodedStream(&decoder)) {
     LOG(ERROR) << "Failed to parse";
     if (!decoder.ConsumedEntireMessage() || !ifs.eof()) {