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 /lapi.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 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.109 2000/10/26 12:47:05 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.110 2000/10/30 12:50:09 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -389,7 +389,7 @@ LUA_API void lua_rawcall (lua_State *L, int nargs, int nresults) { | |||
389 | 389 | ||
390 | /* GC values are expressed in Kbytes: #bytes/2^10 */ | 390 | /* GC values are expressed in Kbytes: #bytes/2^10 */ |
391 | #define GCscale(x) ((int)((x)>>10)) | 391 | #define GCscale(x) ((int)((x)>>10)) |
392 | #define GCunscale(x) ((unsigned long)(x)<<10) | 392 | #define GCunscale(x) ((mem_int)(x)<<10) |
393 | 393 | ||
394 | LUA_API int lua_getgcthreshold (lua_State *L) { | 394 | LUA_API int lua_getgcthreshold (lua_State *L) { |
395 | return GCscale(L->GCthreshold); | 395 | return GCscale(L->GCthreshold); |