Browse Source

Fix warnings (#1944)

master
Samuel Thibault 11 months ago
parent
commit
7f56a3beb9
No account linked to committer's email address
2 changed files with 3 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/numbers.c
  2. 2
    0
      tests/api.c

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

@@ -1682,7 +1682,7 @@ static int TranslateNumber_1(Translator *tr, char *word, char *ph_out, unsigned
if (prev_thousands == 0) {
if ((decimal_point == 0) && (ordinal == 0)) {
// Look for special pronunciation for this number in isolation (LANG=kl)
sprintf(string, "_%dn", value);
sprintf(string, "_%ldn", value);
if (Lookup(tr, string, ph_out))
return 1;
}

+ 2
- 0
tests/api.c View File

@@ -572,6 +572,8 @@ static int
_test_espeak_ng_phoneme_events_cb(short *samples, int num_samples, espeak_EVENT *events) {
char *out = events->user_data;
size_t offset;
(void) samples;
(void) num_samples;
for (espeak_EVENT *e = events; e->type != 0; e++) {
if (e->type == espeakEVENT_PHONEME) {
if (out[0] == 0) offset = 0;

Loading…
Cancel
Save