aboutsummaryrefslogtreecommitdiff
path: root/lzio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lzio.c')
-rw-r--r--lzio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lzio.c b/lzio.c
index 82de1a3e..aaa900c4 100644
--- a/lzio.c
+++ b/lzio.c
@@ -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
44static int zffilbuf (ZIO* z) { 44static 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;