cannot negate size_t. Only a problem on 32-bit OSes

This commit is contained in:
Hieu Hoang 2013-05-20 13:02:16 +01:00
parent aa938fd4ad
commit a635518346

View File

@ -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);
}