Fix gcc sign conversion warnings in spect.c.

This commit is contained in:
Reece H. Dunn
2016-01-10 18:58:46 +00:00
parent caebc926ef
commit 38d15f8f90
+4 -3
View File
@@ -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