mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-04 07:48:47 +00:00
Fix gcc sign conversion warnings in compilembrola.c.
This commit is contained in:
@@ -45,7 +45,6 @@ static unsigned int StringToWord(const char *string)
|
|||||||
{
|
{
|
||||||
// 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)
|
||||||
@@ -54,8 +53,7 @@ static unsigned int StringToWord(const char *string)
|
|||||||
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 |= ((unsigned int)string[ix] << (ix*8));
|
||||||
word |= (c << (ix*8));
|
|
||||||
}
|
}
|
||||||
return word;
|
return word;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -355,10 +355,10 @@ typedef struct {
|
|||||||
} SOUND_ICON;
|
} SOUND_ICON;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int name;
|
unsigned int name;
|
||||||
unsigned int next_phoneme;
|
unsigned int next_phoneme;
|
||||||
int mbr_name;
|
unsigned int mbr_name;
|
||||||
int mbr_name2;
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user