Remove unused sys/time.h, remove snprintf, add casts for sign/unsigned complaints, all Visual C++

git-svn-id: https://cld2.googlecode.com/svn/trunk@78 b252ecd4-b096-bf77-eb8e-91563289f87e
This commit is contained in:
dsites@google.com
2013-09-08 00:38:49 +00:00
parent e0dc16ad01
commit b5ea6727b6
8 changed files with 17 additions and 31 deletions

View File

@@ -68,7 +68,7 @@ uint32 GetNextLangprob(ULScriptRType rtype,
uint32 probs = QuadHashV3Lookup4(wrt_quadgram_obj, quadhash);
int indirect_subscr = probs & ~wrt_quadgram_obj->kCLDTableKeyMask;
uint32 langprob;
if (indirect_subscr < wrt_quadgram_obj->kCLDTableSizeOne) {
if (indirect_subscr < static_cast<int>(wrt_quadgram_obj->kCLDTableSizeOne)) {
// Up to three languages at indirect
langprob = wrt_quadgram_obj->kCLDTableInd[indirect_subscr];
} else {