aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldebug.c b/ldebug.c
index 0cf0f963..764134d9 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.133 2002/08/20 20:03:05 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.134 2002/09/05 19:45:42 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -248,6 +248,7 @@ LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) {
248 248
249static int precheck (const Proto *pt) { 249static int precheck (const Proto *pt) {
250 check(pt->maxstacksize <= MAXSTACK); 250 check(pt->maxstacksize <= MAXSTACK);
251 check(pt->sizelineinfo == pt->sizecode || pt->sizelineinfo == 0);
251 lua_assert(pt->numparams+pt->is_vararg <= pt->maxstacksize); 252 lua_assert(pt->numparams+pt->is_vararg <= pt->maxstacksize);
252 check(GET_OPCODE(pt->code[pt->sizecode-1]) == OP_RETURN); 253 check(GET_OPCODE(pt->code[pt->sizecode-1]) == OP_RETURN);
253 return 1; 254 return 1;