aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/luaconf.h b/luaconf.h
index 65715c8b..80349acc 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -750,13 +750,13 @@
750@@ LUAI_MAXSTACK limits the size of the Lua stack. 750@@ LUAI_MAXSTACK limits the size of the Lua stack.
751** CHANGE it if you need a different limit. This limit is arbitrary; 751** CHANGE it if you need a different limit. This limit is arbitrary;
752** its only purpose is to stop Lua from consuming unlimited stack 752** its only purpose is to stop Lua from consuming unlimited stack
753** space (and to reserve some numbers for pseudo-indices). 753** space and to reserve some numbers for pseudo-indices.
754** (It must fit into max(size_t)/32 and max(int)/2.) 754** (It must fit into max(int)/2.)
755*/ 755*/
756#if LUAI_IS32INT 756#if 1000000 < (INT_MAX / 2)
757#define LUAI_MAXSTACK 1000000 757#define LUAI_MAXSTACK 1000000
758#else 758#else
759#define LUAI_MAXSTACK 15000 759#define LUAI_MAXSTACK (INT_MAX / 2u)
760#endif 760#endif
761 761
762 762