mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-05 22:53:38 +00:00
Fix gcc sign conversion warnings in spect.c.
This commit is contained in:
@@ -139,7 +139,7 @@ static void SpectFrameDestroy(SpectFrame *frame)
|
||||
int LoadFrame(SpectFrame *frame, FILE *stream, int file_format_type)
|
||||
{
|
||||
short ix;
|
||||
short x;
|
||||
unsigned short x;
|
||||
unsigned short *spect_data;
|
||||
|
||||
frame->time = read_double(stream);
|
||||
@@ -275,7 +275,8 @@ static float GetFrameLength(SpectSeq *spect, int frame)
|
||||
|
||||
espeak_ng_STATUS LoadSpectSeq(SpectSeq *spect, const char *filename)
|
||||
{
|
||||
short n, temp;
|
||||
unsigned short n;
|
||||
short temp;
|
||||
int ix;
|
||||
uint32_t id1, id2, name_len;
|
||||
int set_max_y = 0;
|
||||
@@ -309,7 +310,7 @@ espeak_ng_STATUS LoadSpectSeq(SpectSeq *spect, const char *filename)
|
||||
} else
|
||||
spect->name = NULL;
|
||||
|
||||
fread(&n, sizeof(short), 1, stream);
|
||||
fread(&n, sizeof(unsigned short), 1, stream);
|
||||
fread(&spect->amplitude, sizeof(short), 1, stream);
|
||||
fread(&spect->max_y, sizeof(short), 1, stream);
|
||||
fread(&temp, sizeof(short), 1, stream); // unused
|
||||
|
||||
Reference in New Issue
Block a user