Browse Source

Use int to store the value from GetFileLength.

This fixes the clang warning:

    comparison of unsigned expression < 0 is always false
    [-Wtautological-compare]

Reported by Reef Turner <[email protected]>
master
Reece H. Dunn 8 years ago
parent
commit
921229259d
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/libespeak-ng/dictionary.c
  2. 1
    1
      src/libespeak-ng/synthdata.c

+ 1
- 1
src/libespeak-ng/dictionary.c View File

int *pw; int *pw;
int length; int length;
FILE *f; FILE *f;
unsigned int size;
int size;
char fname[sizeof(path_home)+20]; char fname[sizeof(path_home)+20];


strncpy(dictionary_name, name, 40); // currently loaded dictionary name strncpy(dictionary_name, name, 40); // currently loaded dictionary name

+ 1
- 1
src/libespeak-ng/synthdata.c View File

if (!ptr) return EINVAL; if (!ptr) return EINVAL;


FILE *f_in; FILE *f_in;
unsigned int length;
int length;
char buf[sizeof(path_home)+40]; char buf[sizeof(path_home)+40];


sprintf(buf, "%s%c%s", path_home, PATHSEP, fname); sprintf(buf, "%s%c%s", path_home, PATHSEP, fname);

Loading…
Cancel
Save