Browse Source

Fix gcc sign conversion warnings in speak-ng.c.

master
Reece H. Dunn 9 years ago
parent
commit
cf740ae6e8
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/speak-ng.c

+ 3
- 3
src/speak-ng.c View File

FILE *f_wave = NULL; FILE *f_wave = NULL;
int quiet = 0; int quiet = 0;
unsigned int samples_total = 0; unsigned int samples_total = 0;
unsigned int samples_split = 0;
int samples_split = 0;
unsigned int wavefile_count = 0; unsigned int wavefile_count = 0;
int end_of_sentence = 0; int end_of_sentence = 0;




static void CloseWaveFile() static void CloseWaveFile()
{ {
unsigned int pos;
int pos;


if ((f_wave == NULL) || (f_wave == stdout)) if ((f_wave == NULL) || (f_wave == stdout))
return; return;


if (f_wave != NULL) { if (f_wave != NULL) {
samples_total += (out_ptr - wav_outbuf)/2; samples_total += (out_ptr - wav_outbuf)/2;
fwrite(wav_outbuf, 1, out_ptr - wav_outbuf, f_wave);
fwrite(wav_outbuf, 1, (size_t)(out_ptr - wav_outbuf), f_wave);
} }
return finished; return finished;
} }

Loading…
Cancel
Save