mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-21 08:07:14 +03:00
cannot negate size_t. Only a problem on 32-bit OSes
This commit is contained in:
parent
aa938fd4ad
commit
a635518346
@ -112,7 +112,7 @@ void WordPenaltyProducer::Evaluate(const TargetPhrase &targetPhrase
|
||||
, ScoreComponentCollection &scoreBreakdown
|
||||
, ScoreComponentCollection &estimatedFutureScore) const
|
||||
{
|
||||
float score = - targetPhrase.GetNumTerminals();
|
||||
float score = - (float) targetPhrase.GetNumTerminals();
|
||||
scoreBreakdown.Assign(this, score);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user