summaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-09-19 10:03:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-09-19 10:03:53 -0300
commit565e6d74e1440b1500d0ba0d3757307de0a38b9e (patch)
treefb03ae16585a6288a8f2c95621f30058cd806e29 /llex.c
parentf6bc7884be000a82809c8f973a81b2ea50760937 (diff)
downloadlua-github-565e6d74e1440b1500d0ba0d3757307de0a38b9e.tar.gz
state's buffer is used only for chars
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llex.c b/llex.c
index f0cf7146..83ac742d 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
/*
-** $Id: llex.c,v 1.110 2002/09/03 11:57:38 roberto Exp roberto $
+** $Id: llex.c,v 1.111 2002/09/05 19:45:42 roberto Exp roberto $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@@ -141,7 +141,7 @@ void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source) {
#define EXTRABUFF 128
#define checkbuffer(L, len) \
if (((len)+10)*sizeof(char) > G(L)->Mbuffsize) \
- luaO_openspace(L, (len)+EXTRABUFF, char)
+ luaO_openspace(L, (len)+EXTRABUFF)
#define save(L, c, l) (cast(char *, G(L)->Mbuffer)[l++] = cast(char, c))
#define save_and_next(L, LS, l) (save(L, LS->current, l), next(LS))