浏览代码

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)

Roberto Ierusalimschy 10 年之前
父节点
当前提交
b3996c55f6
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      luaconf.h

+ 3 - 2
luaconf.h

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: luaconf.h,v 1.240 2015/01/13 19:50:30 roberto Exp roberto $
+** $Id: luaconf.h,v 1.241 2015/01/16 17:15:52 roberto Exp roberto $
 ** Configuration file for Lua
 ** Configuration file for Lua
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -698,7 +698,8 @@
 #if defined(LUA_REAL_LONGDOUBLE)
 #if defined(LUA_REAL_LONGDOUBLE)
 #define LUAL_BUFFERSIZE		8192
 #define LUAL_BUFFERSIZE		8192
 #else
 #else
-#define LUAL_BUFFERSIZE		(256 * (int)sizeof(lua_Integer))
+#define LUAL_BUFFERSIZE   ((int)(0x80 * sizeof(void*) * sizeof(lua_Integer)))
+
 #endif
 #endif
 
 
 /* }================================================================== */
 /* }================================================================== */