Browse Source

cleanup: fix knownConditionTrueFalse code smells

master
Juho Hiltunen 2 years ago
parent
commit
fa575b54cb
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/libespeak-ng/translate.c
  2. 1
    1
      src/libespeak-ng/translateword.c

+ 1
- 1
src/libespeak-ng/translate.c View File

@@ -763,7 +763,7 @@ static const char *FindReplacementChars(Translator *tr, const char **pfrom, unsi
nmatched++;
}

if (*from == 0 && matched) {
if (matched) {
*ignore_next_n = nmatched;
return from + 1;
}

+ 1
- 1
src/libespeak-ng/translateword.c View File

@@ -1065,7 +1065,7 @@ static int CheckDottedAbbrev(char *word1)
nbytes += 2; // delete the final dot (eg. u.s.a.'s)
ok = 2;
}
} else if ((count > 0) && (word[nbytes] == ' '))
} else if ((count > 0))
ok = 2;
}


Loading…
Cancel
Save