Browse Source

Fix gcc sign conversion warnings in compilembrola.c.

master
Reece H. Dunn 9 years ago
parent
commit
8acf398d23
2 changed files with 4 additions and 6 deletions
  1. 1
    3
      src/libespeak-ng/compilembrola.c
  2. 3
    3
      src/libespeak-ng/synthesize.h

+ 1
- 3
src/libespeak-ng/compilembrola.c View File

{ {
// Pack 4 characters into a word // Pack 4 characters into a word
int ix; int ix;
unsigned char c;
unsigned int word; unsigned int word;


if (string == NULL) if (string == NULL)
word = 0; word = 0;
for (ix = 0; ix < 4; ix++) { for (ix = 0; ix < 4; ix++) {
if (string[ix] == 0) break; if (string[ix] == 0) break;
c = string[ix];
word |= (c << (ix*8));
word |= ((unsigned int)string[ix] << (ix*8));
} }
return word; return word;
} }

+ 3
- 3
src/libespeak-ng/synthesize.h View File

} SOUND_ICON; } SOUND_ICON;


typedef struct { typedef struct {
int name;
unsigned int name;
unsigned int next_phoneme; unsigned int next_phoneme;
int mbr_name;
int mbr_name2;
unsigned int mbr_name;
unsigned int mbr_name2;
int percent; // percentage length of first component int percent; // percentage length of first component
int control; int control;
} MBROLA_TAB; } MBROLA_TAB;

Loading…
Cancel
Save