diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-06-26 20:19:09 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-06-26 20:19:09 +0400 |
commit | efc2c6145e3645fdc58001323cbeb9e43fed415a (patch) | |
tree | adb8cea01dda8cb8a98f85884c382673f27e7cdc /moses/TargetPhraseCollection.cpp | |
parent | 771e792bb43f2cc8ecd18bde19de256262b2af64 (diff) |
beautify
Diffstat (limited to 'moses/TargetPhraseCollection.cpp')
-rw-r--r-- | moses/TargetPhraseCollection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/TargetPhraseCollection.cpp b/moses/TargetPhraseCollection.cpp index 7c664751f..9a28dbd5d 100644 --- a/moses/TargetPhraseCollection.cpp +++ b/moses/TargetPhraseCollection.cpp @@ -37,8 +37,8 @@ void TargetPhraseCollection::NthElement(size_t tableLimit) { vector<TargetPhrase*>::iterator nth; nth = (tableLimit && tableLimit <= m_collection.size() - ? m_collection.begin() + tableLimit - : m_collection.end()); + ? m_collection.begin() + tableLimit + : m_collection.end()); std::nth_element(m_collection.begin(), nth, m_collection.end(), CompareTargetPhrase()); } |