Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Huck <huck@i6.informatik.rwth-aachen.de>2014-07-28 22:49:43 +0400
committerMatthias Huck <huck@i6.informatik.rwth-aachen.de>2014-07-28 22:49:43 +0400
commit7b02017da1e2a09486627b543446ec78e51541a7 (patch)
tree89feda8685bd74ca1dcdfb30dccb1e57643b0259 /phrase-extract/extract-main.cpp
parent56a3655ba9f72b407c9088b6d1c9ee6a3a0605b4 (diff)
use std::numeric_limits
Diffstat (limited to 'phrase-extract/extract-main.cpp')
-rw-r--r--phrase-extract/extract-main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/phrase-extract/extract-main.cpp b/phrase-extract/extract-main.cpp
index 552dcb739..2f22d8aba 100644
--- a/phrase-extract/extract-main.cpp
+++ b/phrase-extract/extract-main.cpp
@@ -18,6 +18,7 @@
#include <map>
#include <set>
#include <vector>
+#include <limits>
#include "SentenceAlignment.h"
#include "tables-core.h"
@@ -373,7 +374,7 @@ void ExtractTask::extract(SentenceAlignment &sentence)
(endE<countE && (relaxLimit || endE<startE+m_options.maxPhraseLength));
endE++) {
- int minF = 9999;
+ int minF = std::numeric_limits<int>::max();
int maxF = -1;
vector< int > usedF = sentence.alignedCountS;
for(int ei=startE; ei<=endE; ei++) {