Browse Source

TranslateClauseWithTerminator: keep more room in num_wtab (#2099)

master
Samuel Thibault 5 months ago
parent
commit
5039756364
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/translate.c

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

if ((n_digits > tr->langopts.max_digits) || (word[0] == '0')) if ((n_digits > tr->langopts.max_digits) || (word[0] == '0'))
words[ix].flags |= FLAG_INDIVIDUAL_DIGITS; words[ix].flags |= FLAG_INDIVIDUAL_DIGITS;


while (pn < &number_buf[sizeof(number_buf)-20] && nw < N_CLAUSE_WORDS-1) {
while (pn < &number_buf[sizeof(number_buf)-20] && nw < N_CLAUSE_WORDS-2) {
if (!IsDigit09(c = *pw++) && (c != tr->langopts.decimal_sep)) if (!IsDigit09(c = *pw++) && (c != tr->langopts.decimal_sep))
break; break;



Loading…
Cancel
Save