From e907c711c04b3e09164e7654623e1f48a689f5cc Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 5 Mar 1999 10:15:50 -0300 Subject: "feof" may be a macro. --- lzio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lzio.c') diff --git a/lzio.c b/lzio.c index 82de1a3e..aaa900c4 100644 --- a/lzio.c +++ b/lzio.c @@ -1,5 +1,5 @@ /* -** $Id: lzio.c,v 1.5 1999/02/25 19:13:56 roberto Exp roberto $ +** $Id: lzio.c,v 1.6 1999/03/04 14:49:18 roberto Exp roberto $ ** a generic input stream interface ** See Copyright Notice in lua.h */ @@ -43,7 +43,7 @@ ZIO* zsopen (ZIO* z, char* s, char *name) static int zffilbuf (ZIO* z) { int n; - if (feof(z->u)) return EOZ; + if (feof((FILE *)z->u)) return EOZ; n=fread(z->buffer,1,ZBSIZE,z->u); if (n==0) return EOZ; z->n=n-1; -- cgit v1.2.3-55-g6feb