summaryrefslogtreecommitdiff
path: root/src/luac.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/luac.c')
-rw-r--r--src/luac.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/luac.c b/src/luac.c
index 5081836d..43c3d0d6 100644
--- a/src/luac.c
+++ b/src/luac.c
@@ -202,8 +202,10 @@ int main(int argc, char* argv[])
return EXIT_SUCCESS;
}
+#define nvalue(x) 0
+#define ttypenv(x) ttnov(x)
/*
-** $Id: print.c,v 1.68 2011/09/30 10:21:20 lhf Exp $
+** $Id: print.c,v 1.69 2013/07/04 01:03:46 lhf Exp $
** print bytecodes
** See Copyright Notice in lua.h
*/
@@ -251,7 +253,7 @@ static void PrintString(const TString* ts)
static void PrintConstant(const Proto* f, int i)
{
const TValue* o=&f->k[i];
- switch (ttype(o))
+ switch (ttypenv(o))
{
case LUA_TNIL:
printf("nil");