aboutsummaryrefslogtreecommitdiff
path: root/lzio.h
diff options
context:
space:
mode:
Diffstat (limited to 'lzio.h')
-rw-r--r--lzio.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lzio.h b/lzio.h
index 2c666ab3..32998d07 100644
--- a/lzio.h
+++ b/lzio.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lzio.h,v 1.23 2011/02/17 17:34:16 roberto Exp roberto $ 2** $Id: lzio.h,v 1.24 2011/02/23 13:13:10 roberto Exp roberto $
3** Buffered streams 3** Buffered streams
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -17,9 +17,7 @@
17 17
18typedef struct Zio ZIO; 18typedef struct Zio ZIO;
19 19
20#define char2int(c) cast(int, cast(unsigned char, (c))) 20#define zgetc(z) (((z)->n--)>0 ? cast_uchar(*(z)->p++) : luaZ_fill(z))
21
22#define zgetc(z) (((z)->n--)>0 ? char2int(*(z)->p++) : luaZ_fill(z))
23 21
24#define zungetc(z) ((z)->n++, (z)->p--) 22#define zungetc(z) ((z)->n++, (z)->p--)
25 23