Browse Source

Fix gcc sign conversion warnings in spect.c.

master
Reece H. Dunn 9 years ago
parent
commit
38d15f8f90
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      src/libespeak-ng/spect.c

+ 4
- 3
src/libespeak-ng/spect.c 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

Loading…
Cancel
Save