mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-05 15:58:03 +03:00
Bug fix
This commit is contained in:
parent
55144293a3
commit
d379557cf2
@ -264,7 +264,7 @@ Assign(const FeatureFunction* sp, size_t idx, float sc)
|
||||
size_t numScores = sp->GetNumScoreComponents();
|
||||
size_t offset = sp->GetIndex();
|
||||
|
||||
if (idx < numScores) {
|
||||
if (idx >= numScores) {
|
||||
UTIL_THROW(util::Exception, "Feature function "
|
||||
<< sp->GetScoreProducerDescription() << " specified index "
|
||||
<< idx << " dense scores or weights. Actually has "
|
||||
|
Loading…
Reference in New Issue
Block a user