From d3dd337fcaf286c83103e283b72b6ef52d837ba3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 6 Aug 2002 14:26:45 -0300 Subject: lua_Chunkreader gets a lua_State, to avoid future incompatibilities --- lzio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lzio.c') diff --git a/lzio.c b/lzio.c index c2649eb2..7ae7abb5 100644 --- a/lzio.c +++ b/lzio.c @@ -1,5 +1,5 @@ /* -** $Id: lzio.c,v 1.19 2002/06/06 12:40:22 roberto Exp roberto $ +** $Id: lzio.c,v 1.20 2002/08/05 18:45:02 roberto Exp roberto $ ** a generic input stream interface ** See Copyright Notice in lua.h */ @@ -16,7 +16,7 @@ int luaZ_fill (ZIO *z) { size_t size; - const char *buff = z->reader(z->data, &size); + const char *buff = z->reader(NULL, z->data, &size); if (buff == NULL || size == 0) return EOZ; z->n = size - 1; z->p = buff; -- cgit v1.2.3-55-g6feb