From 15db58a2f5293add82ef447c466f3ea950705593 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 13 Feb 2003 14:08:47 -0200 Subject: [PATCH] create arg table with correct size --- ldo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldo.c b/ldo.c index 00b42ccc..057d5b30 100644 --- a/ldo.c +++ b/ldo.c @@ -1,5 +1,5 @@ /* -** $Id: ldo.c,v 1.211 2002/12/04 17:38:31 roberto Exp roberto $ +** $Id: ldo.c,v 1.212 2003/01/23 11:31:38 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -187,7 +187,7 @@ static void adjust_varargs (lua_State *L, int nfixargs, StkId base) { setnilvalue(L->top++); } actual -= nfixargs; /* number of extra arguments */ - htab = luaH_new(L, 0, 0); /* create `arg' table */ + htab = luaH_new(L, actual, 1); /* create `arg' table */ for (i=0; itop - actual + i); /* store counter in field `n' */