Fix for Windows (an extern value can't be treated as a constant)
git-svn-id: https://cld2.googlecode.com/svn/trunk@84 b252ecd4-b096-bf77-eb8e-91563289f87e
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#include "cldutil.h"
|
#include "cldutil.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
@@ -1537,8 +1538,7 @@ void ApplyHints(const char* buffer,
|
|||||||
// Put whacks into scoring context
|
// Put whacks into scoring context
|
||||||
// We do not in general want zh-Hans and zh-Hant to be close pairs,
|
// We do not in general want zh-Hans and zh-Hant to be close pairs,
|
||||||
// but we do here. Use close_set_count[kCloseSetSize] to count zh, zh-Hant
|
// but we do here. Use close_set_count[kCloseSetSize] to count zh, zh-Hant
|
||||||
int close_set_count[kCloseSetSize + 1];
|
std::vector<int> close_set_count(kCloseSetSize + 1, 0);
|
||||||
memset(close_set_count, 0, sizeof(close_set_count));
|
|
||||||
|
|
||||||
for (int i = 0; i < GetCLDLangPriorCount(&lang_priors); ++i) {
|
for (int i = 0; i < GetCLDLangPriorCount(&lang_priors); ++i) {
|
||||||
Language lang = GetCLDPriorLang(lang_priors.prior[i]);
|
Language lang = GetCLDPriorLang(lang_priors.prior[i]);
|
||||||
|
Reference in New Issue
Block a user