aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-20 15:15:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-20 15:15:33 -0300
commit099442c41f2cec6122690e6c8f2e11327613e6f6 (patch)
tree73599b274ea4a9b96906ff8160eeb4a524702a8e /lvm.c
parent27600fe87a6fafdfd4ddddeb390591fe749b480f (diff)
downloadlua-099442c41f2cec6122690e6c8f2e11327613e6f6.tar.gz
lua-099442c41f2cec6122690e6c8f2e11327613e6f6.tar.bz2
lua-099442c41f2cec6122690e6c8f2e11327613e6f6.zip
better separation between basic types
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lvm.c b/lvm.c
index 5e7fd09b..ca26e95a 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 1.168 2001/02/09 20:22:29 roberto Exp roberto $ 2** $Id: lvm.c,v 1.169 2001/02/12 13:04:19 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*/
@@ -273,8 +273,7 @@ void luaV_strconc (lua_State *L, int total, StkId top) {
273 } 273 }
274 else if (tsvalue(top-1)->len > 0) { /* if len=0, do nothing */ 274 else if (tsvalue(top-1)->len > 0) { /* if len=0, do nothing */
275 /* at least two string values; get as many as possible */ 275 /* at least two string values; get as many as possible */
276 luint32 tl = (luint32)tsvalue(top-1)->len + 276 lu_mem tl = (lu_mem)tsvalue(top-1)->len + (lu_mem)tsvalue(top-2)->len;
277 (luint32)tsvalue(top-2)->len;
278 char *buffer; 277 char *buffer;
279 int i; 278 int i;
280 while (n < total && !tostring(L, top-n-1)) { /* collect total length */ 279 while (n < total && !tostring(L, top-n-1)) { /* collect total length */