diff options
author | pixel <pixel> | 2008-02-18 10:15:45 +0000 |
---|---|---|
committer | pixel <pixel> | 2008-02-18 10:15:45 +0000 |
commit | 11d24fff6bbda7fd295b035d79da9f29725f0e1f (patch) | |
tree | 7bd713e6d3efeecdf813d4889fd488ad137bb143 /lib/lua/include | |
parent | ca1522e3cb60c8f45483be92af19982ded77676d (diff) |
Patching latests lua bug reports.
Diffstat (limited to 'lib/lua/include')
-rw-r--r-- | lib/lua/include/luaconf.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/lua/include/luaconf.h b/lib/lua/include/luaconf.h index 1ada33c..edab3d1 100644 --- a/lib/lua/include/luaconf.h +++ b/lib/lua/include/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.2 2008-02-17 00:35:20 pixel Exp $ +** $Id: luaconf.h,v 1.3 2008-02-18 10:15:45 pixel Exp $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -440,10 +440,10 @@ @* can use. ** CHANGE it if you need lots of (Lua) stack space for your C ** functions. This limit is arbitrary; its only purpose is to stop C -** functions to consume unlimited stack space. +** functions to consume unlimited stack space. (must be smaller than +** -LUA_REGISTRYINDEX) */ -#define LUAI_MCS_AUX ((int)(INT_MAX / (4*sizeof(LUA_NUMBER)))) -#define LUAI_MAXCSTACK (LUAI_MCS_AUX > SHRT_MAX ? SHRT_MAX : LUAI_MCS_AUX) +#define LUAI_MAXCSTACK 8000 |