From fa0c03aaa6e7d349ba01e5e3dc028616ef2caf5a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 14 Jul 2006 13:22:24 -0300 Subject: [PATCH] details --- lvm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lvm.c b/lvm.c index 50ffdfdc..10fd134f 100644 --- a/lvm.c +++ b/lvm.c @@ -1,5 +1,5 @@ /* -** $Id: lvm.c,v 2.63 2006/06/05 15:58:59 roberto Exp roberto $ +** $Id: lvm.c,v 2.65 2006/07/14 14:40:12 roberto Exp $ ** Lua virtual machine ** See Copyright Notice in lua.h */ @@ -455,12 +455,12 @@ void luaV_execute (lua_State *L, int nexeccalls) { continue; } case OP_NEWTABLE: { - int asize = luaO_fb2int(GETARG_B(i)); - int nsize = luaO_fb2int(GETARG_C(i)); + int b = GETARG_B(i); + int c = GETARG_C(i); Table *t = luaH_new(L); sethvalue(L, ra, t); - if (asize > 0 || nsize > 0) - luaH_resize(L, t, asize, nsize); + if (b != 0 || c != 0) + luaH_resize(L, t, luaO_fb2int(b), luaO_fb2int(c)); Protect(luaC_checkGC(L)); continue; } @@ -523,7 +523,7 @@ void luaV_execute (lua_State *L, int nexeccalls) { } default: { /* try metamethod */ Protect( - if (!call_binTM(L, rb, luaO_nilobject, ra, TM_LEN)) + if (!call_binTM(L, rb, rb, ra, TM_LEN)) luaG_typeerror(L, rb, "get length of"); ) }