diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-16 15:26:56 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-16 15:26:56 -0200 |
commit | b3996c55f6991a6f11bf7ead2df48034a2d84e8a (patch) | |
tree | 24abe25fce33909b075843e7066af968c9088b9a /luaconf.h | |
parent | 438a9fcc782754ce265412769519670475898f5c (diff) | |
download | lua-b3996c55f6991a6f11bf7ead2df48034a2d84e8a.tar.gz lua-b3996c55f6991a6f11bf7ead2df48034a2d84e8a.tar.bz2 lua-b3996c55f6991a6f11bf7ead2df48034a2d84e8a.zip |
LUAL_BUFFERSIZE affects the API, so it is better not to change it
between releases of the same version. (The long double case seems
to be too rare, so that should not be a problem; moreover, that
case is related to a bug)
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.240 2015/01/13 19:50:30 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.241 2015/01/16 17:15:52 roberto Exp roberto $ |
3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -698,7 +698,8 @@ | |||
698 | #if defined(LUA_REAL_LONGDOUBLE) | 698 | #if defined(LUA_REAL_LONGDOUBLE) |
699 | #define LUAL_BUFFERSIZE 8192 | 699 | #define LUAL_BUFFERSIZE 8192 |
700 | #else | 700 | #else |
701 | #define LUAL_BUFFERSIZE (256 * (int)sizeof(lua_Integer)) | 701 | #define LUAL_BUFFERSIZE ((int)(0x80 * sizeof(void*) * sizeof(lua_Integer))) |
702 | |||
702 | #endif | 703 | #endif |
703 | 704 | ||
704 | /* }================================================================== */ | 705 | /* }================================================================== */ |