summaryrefslogtreecommitdiff
path: root/extools/sentence_pair.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extools/sentence_pair.cc')
-rw-r--r--extools/sentence_pair.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/extools/sentence_pair.cc b/extools/sentence_pair.cc
index b2881737..4cbcc98e 100644
--- a/extools/sentence_pair.cc
+++ b/extools/sentence_pair.cc
@@ -72,8 +72,8 @@ int AnnotatedParallelSentence::ReadAlignmentPoint(const char* buf,
}
(*b) = 0;
while(ch < end && (c == 0 && (!permit_col || (permit_col && buf[ch] != ':')) || c != 0 && buf[ch] != '-')) {
- if (buf[ch] < '0' || buf[ch] > '9') {
- cerr << "Alignment point badly formed 4: " << string(buf, start, end-start) << endl << buf << endl;
+ if ((buf[ch] < '0') || (buf[ch] > '9')) {
+ cerr << "Alignment point badly formed 4: " << string(buf, start, end-start) << endl << buf << endl << buf[ch] << endl;
exit(1);
}
(*b) *= 10;