Add missing check for too many language hints
git-svn-id: https://cld2.googlecode.com/svn/trunk@11 b252ecd4-b096-bf77-eb8e-91563289f87e
This commit is contained in:
@@ -31,9 +31,10 @@ namespace CLD2 {
|
||||
// Full language in bottom 10 bits, weight in top 6 bits
|
||||
typedef int16 OneCLDLangPrior;
|
||||
|
||||
const int kMaxOneCLDLangPrior = 14;
|
||||
typedef struct {
|
||||
int32 n;
|
||||
OneCLDLangPrior prior[14];
|
||||
OneCLDLangPrior prior[kMaxOneCLDLangPrior];
|
||||
} CLDLangPriors;
|
||||
|
||||
// Reading exposed here; setting hidden in .cc
|
||||
|
Reference in New Issue
Block a user