This commit is contained in:
Roberto Ierusalimschy 1999-09-06 12:24:46 -03:00
parent 82699d0c4f
commit f7fe04d4b7
1 changed files with 2 additions and 2 deletions

4
ldo.c
View File

@ -1,5 +1,5 @@
/* /*
** $Id: ldo.c,v 1.45 1999/06/22 20:37:23 roberto Exp roberto $ ** $Id: ldo.c,v 1.46 1999/08/16 20:52:00 roberto Exp roberto $
** Stack and Call structure of Lua ** Stack and Call structure of Lua
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -190,7 +190,7 @@ void luaD_calln (int nArgs, int nResults) {
break; break;
case LUA_T_CLOSURE: { case LUA_T_CLOSURE: {
Closure *c = clvalue(func); Closure *c = clvalue(func);
TObject *proto = &(c->consts[0]); TObject *proto = c->consts;
ttype(func) = LUA_T_CLMARK; ttype(func) = LUA_T_CLMARK;
firstResult = (ttype(proto) == LUA_T_CPROTO) ? firstResult = (ttype(proto) == LUA_T_CPROTO) ?
callCclosure(c, fvalue(proto), base) : callCclosure(c, fvalue(proto), base) :