aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lvm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index db7e3a56..376e9506 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 1.54 1999/03/10 14:09:45 roberto Exp roberto $ 2** $Id: lvm.c,v 1.55 1999/04/13 19:28:49 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -620,7 +620,8 @@ StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base) {
620 goto switchentry; /* do not reset "aux" */ 620 goto switchentry; /* do not reset "aux" */
621 621
622 case CHECKSTACK: aux = *pc++; 622 case CHECKSTACK: aux = *pc++;
623 LUA_ASSERT((S->top-S->stack)-base == aux, "wrong stack size"); 623 LUA_ASSERT((S->top-S->stack)-base == aux && S->last >= S->top,
624 "wrong stack size");
624 break; 625 break;
625 626
626 } 627 }