mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user