Browse Source

MatchRule: Do not go back before the pre-ptr

pre_ptr is already one byte before the current letter, so we do not want
to subtract 1 again. Otherwise this would for instance underflow word_iz
of addPluralSuffixes.
master
Samuel Thibault 3 years ago
parent
commit
cd33c4042a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/dictionary.c

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

@@ -2049,7 +2049,7 @@ static void MatchRule(Translator *tr, char *word[], char *word_start, int group_
break;
case RULE_NOVOWELS:
{
char *p = pre_ptr - letter_xbytes - 1;
char *p = pre_ptr - letter_xbytes;
while (letter_w != RULE_SPACE) {
if (IsLetter(tr, letter_w, LETTERGP_VOWEL2)) {
failed = 1;

Loading…
Cancel
Save