diff options
| -rw-r--r-- | lzio.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lzio.c,v 1.5 1999/02/25 19:13:56 roberto Exp roberto $ | 2 | ** $Id: lzio.c,v 1.6 1999/03/04 14:49:18 roberto Exp roberto $ |
| 3 | ** a generic input stream interface | 3 | ** a generic input stream interface |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -43,7 +43,7 @@ ZIO* zsopen (ZIO* z, char* s, char *name) | |||
| 43 | 43 | ||
| 44 | static int zffilbuf (ZIO* z) { | 44 | static int zffilbuf (ZIO* z) { |
| 45 | int n; | 45 | int n; |
| 46 | if (feof(z->u)) return EOZ; | 46 | if (feof((FILE *)z->u)) return EOZ; |
| 47 | n=fread(z->buffer,1,ZBSIZE,z->u); | 47 | n=fread(z->buffer,1,ZBSIZE,z->u); |
| 48 | if (n==0) return EOZ; | 48 | if (n==0) return EOZ; |
| 49 | z->n=n-1; | 49 | z->n=n-1; |
