diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-11-19 21:23:19 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-11-19 21:23:19 +0400 |
commit | 22864c2b4b154b2c69518bf773fe73f4c557af0a (patch) | |
tree | 660ee9759c095d2c38b769db69259b38d096fc37 /moses/TranslationOptionCollectionText.cpp | |
parent | c2c86ce50d1900db55e420dd08f38facfce50501 (diff) |
replace CHECK with UTIL_THROW_IF in Moses
Diffstat (limited to 'moses/TranslationOptionCollectionText.cpp')
-rw-r--r-- | moses/TranslationOptionCollectionText.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/TranslationOptionCollectionText.cpp b/moses/TranslationOptionCollectionText.cpp index d297d1db5..2db62fc8f 100644 --- a/moses/TranslationOptionCollectionText.cpp +++ b/moses/TranslationOptionCollectionText.cpp @@ -153,7 +153,7 @@ void TranslationOptionCollectionText::CreateXmlOptionsForRange(size_t startPos, InputPath &TranslationOptionCollectionText::GetInputPath(size_t startPos, size_t endPos) { size_t offset = endPos - startPos; - CHECK(offset < m_inputPathMatrix[startPos].size()); + assert(offset < m_inputPathMatrix[startPos].size()); return *m_inputPathMatrix[startPos][offset]; } |