diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-20 15:15:33 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-20 15:15:33 -0300 |
commit | 099442c41f2cec6122690e6c8f2e11327613e6f6 (patch) | |
tree | 73599b274ea4a9b96906ff8160eeb4a524702a8e /lvm.c | |
parent | 27600fe87a6fafdfd4ddddeb390591fe749b480f (diff) | |
download | lua-099442c41f2cec6122690e6c8f2e11327613e6f6.tar.gz lua-099442c41f2cec6122690e6c8f2e11327613e6f6.tar.bz2 lua-099442c41f2cec6122690e6c8f2e11327613e6f6.zip |
better separation between basic types
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 */ |