Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lm/read_arpa.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void ReadBackoff(util::FilePiece &in, Prob &/*weights*/) {
break;
case '\r':
ConsumeNewline(in);
// Intentionally no break.
[[fallthrough]];
case '\n':
break;
default:
Expand Down Expand Up @@ -131,6 +131,7 @@ void ReadBackoff(util::FilePiece &in, float &backoff) {
switch (char got = in.get()) {
case '\r':
ConsumeNewline(in);
[[fallthrough]];
case '\n':
break;
default:
Expand All @@ -139,7 +140,7 @@ void ReadBackoff(util::FilePiece &in, float &backoff) {
break;
case '\r':
ConsumeNewline(in);
// Intentionally no break.
[[fallthrough]];
case '\n':
backoff = ngram::kNoExtensionBackoff;
break;
Expand Down