diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-11-24 15:39:56 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-11-24 15:39:56 -0200 |
commit | 96253ed8ceb38afa50887ccb5500442b5b220f08 (patch) | |
tree | 4b42b80f781b0cbe95782f8e8ebec06d85e80ae4 /lvm.c | |
parent | 35d6b1505702b0f4a2eee0e6d2f8dfc50943a1a7 (diff) | |
download | lua-96253ed8ceb38afa50887ccb5500442b5b220f08.tar.gz lua-96253ed8ceb38afa50887ccb5500442b5b220f08.tar.bz2 lua-96253ed8ceb38afa50887ccb5500442b5b220f08.zip |
better support for 64-bit machines (avoid excessive use of longs)
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.145 2000/10/06 12:45:25 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.146 2000/10/26 12:47:05 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 | */ |
@@ -295,8 +295,8 @@ void luaV_strconc (lua_State *L, int total, StkId top) { | |||
295 | } | 295 | } |
296 | else if (tsvalue(top-1)->len > 0) { /* if len=0, do nothing */ | 296 | else if (tsvalue(top-1)->len > 0) { /* if len=0, do nothing */ |
297 | /* at least two string values; get as many as possible */ | 297 | /* at least two string values; get as many as possible */ |
298 | lint32 tl = (lint32)tsvalue(top-1)->len + | 298 | luint32 tl = (luint32)tsvalue(top-1)->len + |
299 | (lint32)tsvalue(top-2)->len; | 299 | (luint32)tsvalue(top-2)->len; |
300 | char *buffer; | 300 | char *buffer; |
301 | int i; | 301 | int i; |
302 | while (n < total && !tostring(L, top-n-1)) { /* collect total length */ | 302 | while (n < total && !tostring(L, top-n-1)) { /* collect total length */ |