genunifont: fix ftell() error checking

We need to use signed types to actually see errors from ftell(). Fix it by
using "long" for status bits now.

Reported-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
David Herrmann committed 2013-10-18 17:56:46 +02:00
1 parent b00dde0bc9
commit 2157b039ac
1 file changed
+1 -1
+1 -1
View File
@@ -119,7 +119,7 @@ static int parse_single_file(FILE *out, FILE *in)
char buf[MAX_DATA_SIZE];
struct unifont_glyph *g, **iter, *list, *last;
int ret, num;
unsigned long status_max, status_cur;
long status_max, status_cur;
unsigned long perc_prev, perc_now;
if (fseek(in, 0, SEEK_END) != 0) {