aboutsummaryrefslogtreecommitdiff
path: root/lzio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lzio.c')
-rw-r--r--lzio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lzio.c b/lzio.c
index 19e05c5c..ed14abc6 100644
--- a/lzio.c
+++ b/lzio.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lzio.c,v 1.22 2002/10/08 18:46:08 roberto Exp roberto $ 2** $Id: lzio.c,v 1.23 2002/12/04 17:38:31 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*/
@@ -22,7 +22,7 @@ int luaZ_fill (ZIO *z) {
22 if (buff == NULL || size == 0) return EOZ; 22 if (buff == NULL || size == 0) return EOZ;
23 z->n = size - 1; 23 z->n = size - 1;
24 z->p = buff; 24 z->p = buff;
25 return *(z->p++); 25 return char2int(*(z->p++));
26} 26}
27 27
28 28
@@ -33,7 +33,7 @@ int luaZ_lookahead (ZIO *z) {
33 z->n++; 33 z->n++;
34 z->p--; 34 z->p--;
35 } 35 }
36 return *z->p; 36 return char2int(*z->p);
37} 37}
38 38
39 39