aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-25 16:20:40 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-25 16:20:40 -0300
commit31bea2190b25e5b6687d92d807af522378168bfa (patch)
treeb4b684d4c239aa1f0f2f64cc65eeca3c0fce6251
parent4b954e9b2e82e7b7a03216f06ebad71d5d8bd948 (diff)
downloadlua-31bea2190b25e5b6687d92d807af522378168bfa.tar.gz
lua-31bea2190b25e5b6687d92d807af522378168bfa.tar.bz2
lua-31bea2190b25e5b6687d92d807af522378168bfa.zip
small correction
-rw-r--r--lbuffer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lbuffer.c b/lbuffer.c
index 2f641df6..5ad03a97 100644
--- a/lbuffer.c
+++ b/lbuffer.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbuffer.c,v 1.6 1999/02/25 15:17:01 roberto Exp roberto $ 2** $Id: lbuffer.c,v 1.7 1999/02/25 19:13:56 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -24,7 +24,8 @@
24 24
25static void Openspace (int size) { 25static void Openspace (int size) {
26 lua_State *l = L; /* to optimize */ 26 lua_State *l = L; /* to optimize */
27 l->Mbuffsize = l->Mbuffnext+size+EXTRABUFF; 27 size += EXTRABUFF;
28 l->Mbuffsize = l->Mbuffnext+size;
28 l->Mbuffer = luaM_growvector(l->Mbuffer, l->Mbuffnext, size, char, 29 l->Mbuffer = luaM_growvector(l->Mbuffer, l->Mbuffnext, size, char,
29 memEM, MAX_INT); 30 memEM, MAX_INT);
30} 31}