Skip to content

Commit 122b855

Browse files
committed
static_cast
1 parent 43368d2 commit 122b855

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lima_linguisticprocessing/src/linguisticProcessing/core/AnalysisDict/EnhancedAnalysisDictionaryEntry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void EnhancedAnalysisDictionaryEntry::parseAccentedForms(
121121
while (p!=end)
122122
{
123123
read = static_cast<StringsPoolIndex>(DictionaryData::readCodedInt(p));
124-
if (read == 0)
124+
if (read == static_cast<StringsPoolIndex>(0))
125125
{
126126
read = static_cast<StringsPoolIndex>(DictionaryData::readCodedInt(p));
127127
handler->deleteAccentedForm(read);

lima_linguisticprocessing/src/linguisticProcessing/core/AnalysisDict/MultiLevelAnalysisDictionaryEntry.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ void LingInfoLevelState::next(FsaStringsPool& sp)
500500
if (pos != posEnd)
501501
{
502502
currentLemma = DictionaryData::readCodedInt(pos);
503-
if (currentLemma == 0)
503+
if (currentLemma == static_cast<StringsPoolIndex>(0))
504504
{
505505
final = true;
506506
currentLemma = DictionaryData::readCodedInt(pos);
@@ -515,7 +515,7 @@ void LingInfoLevelState::next(FsaStringsPool& sp)
515515
currentLemma = sp[lemmaStr];
516516
}
517517
currentNorm = DictionaryData::readCodedInt(pos);
518-
if (currentNorm == 0)
518+
if (currentNorm == static_cast<StringsPoolIndex>(0))
519519
{
520520
currentNorm = currentLemma;
521521
normStr = lemmaStr;
@@ -898,7 +898,7 @@ void AccentedLevelState::next(FsaStringsPool& sp)
898898
if (pos != posEnd)
899899
{
900900
accentedEntry = DictionaryData::readCodedInt(pos);
901-
if (accentedEntry == 0)
901+
if (accentedEntry == static_cast<StringsPoolIndex>(0))
902902
{
903903
final = true;
904904
accentedEntry = DictionaryData::readCodedInt(pos);

0 commit comments

Comments
 (0)