diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-25 16:20:40 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-25 16:20:40 -0300 |
commit | 31bea2190b25e5b6687d92d807af522378168bfa (patch) | |
tree | b4b684d4c239aa1f0f2f64cc65eeca3c0fce6251 | |
parent | 4b954e9b2e82e7b7a03216f06ebad71d5d8bd948 (diff) | |
download | lua-31bea2190b25e5b6687d92d807af522378168bfa.tar.gz lua-31bea2190b25e5b6687d92d807af522378168bfa.tar.bz2 lua-31bea2190b25e5b6687d92d807af522378168bfa.zip |
small correction
-rw-r--r-- | lbuffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 | ||
25 | static void Openspace (int size) { | 25 | static 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 | } |