diff options
Diffstat (limited to 'lm/filter/arpa_io.cc')
-rw-r--r-- | lm/filter/arpa_io.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lm/filter/arpa_io.cc b/lm/filter/arpa_io.cc index caf8df953..51264f750 100644 --- a/lm/filter/arpa_io.cc +++ b/lm/filter/arpa_io.cc @@ -33,7 +33,7 @@ ARPAOutputException::ARPAOutputException(const char *message, const std::string const char *add = buf; if (!strerror_r(errno, buf, 1024)) { #else - const char *add = strerror_r(errno, buf, 1024); + int add = strerror_r(errno, buf, 1024); if (add) { #endif what_ += " :"; @@ -43,7 +43,7 @@ ARPAOutputException::ARPAOutputException(const char *message, const std::string } // Seeking is the responsibility of the caller. -void WriteCounts(std::ostream &out, const std::vector<size_t> &number) { +void WriteCounts(std::ostream &out, const std::vector<uint64_t> &number) { out << "\n\\data\\\n"; for (unsigned int i = 0; i < number.size(); ++i) { out << "ngram " << i+1 << "=" << number[i] << '\n'; @@ -51,7 +51,7 @@ void WriteCounts(std::ostream &out, const std::vector<size_t> &number) { out << '\n'; } -size_t SizeNeededForCounts(const std::vector<size_t> &number) { +size_t SizeNeededForCounts(const std::vector<uint64_t> &number) { std::ostringstream buf; WriteCounts(buf, number); return buf.tellp(); |