lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 31bea2190b25e5b6687d92d807af522378168bfa
parent 4b954e9b2e82e7b7a03216f06ebad71d5d8bd948
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu, 25 Feb 1999 16:20:18 -0300

small correction

Diffstat:
Mlbuffer.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lbuffer.c b/lbuffer.c @@ -1,5 +1,5 @@ /* -** $Id: lbuffer.c,v 1.6 1999/02/25 15:17:01 roberto Exp roberto $ +** $Id: lbuffer.c,v 1.7 1999/02/25 19:13:56 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -24,7 +24,8 @@ static void Openspace (int size) { lua_State *l = L; /* to optimize */ - l->Mbuffsize = l->Mbuffnext+size+EXTRABUFF; + size += EXTRABUFF; + l->Mbuffsize = l->Mbuffnext+size; l->Mbuffer = luaM_growvector(l->Mbuffer, l->Mbuffnext, size, char, memEM, MAX_INT); }