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 <reef@nvaccess.org>
This commit is contained in:
Reece H. Dunn
2017-07-26 19:50:03 +01:00
parent fb64332f66
commit 921229259d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ static espeak_ng_STATUS ReadPhFile(void **ptr, const char *fname, int *size, esp
if (!ptr) return EINVAL;
FILE *f_in;
unsigned int length;
int length;
char buf[sizeof(path_home)+40];
sprintf(buf, "%s%c%s", path_home, PATHSEP, fname);