aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-08 15:46:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-08 15:46:08 -0300
commitb3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4 (patch)
tree746fc9900768dfaf1ddffca35cb4f6fd55903bbf /lvm.c
parent02afc892d5ce5d85e88faac443d7294589ee697a (diff)
downloadlua-b3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4.tar.gz
lua-b3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4.tar.bz2
lua-b3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4.zip
use of different buffers for scanner and concatenation
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index 0279dbe7..68e6a080 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 1.255 2002/09/19 13:03:53 roberto Exp roberto $ 2** $Id: lvm.c,v 1.256 2002/09/19 20:12:47 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -303,7 +303,7 @@ void luaV_concat (lua_State *L, int total, int last) {
303 n++; 303 n++;
304 } 304 }
305 if (tl > MAX_SIZET) luaG_runerror(L, "string size overflow"); 305 if (tl > MAX_SIZET) luaG_runerror(L, "string size overflow");
306 buffer = luaO_openspace(L, tl); 306 buffer = luaZ_openspace(L, &G(L)->buff, tl);
307 tl = 0; 307 tl = 0;
308 for (i=n; i>0; i--) { /* concat all strings */ 308 for (i=n; i>0; i--) { /* concat all strings */
309 size_t l = tsvalue(top-i)->tsv.len; 309 size_t l = tsvalue(top-i)->tsv.len;