aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lua.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua.h b/lua.h
index 95e0db32..131a8fcb 100644
--- a/lua.h
+++ b/lua.h
@@ -37,10 +37,10 @@
37 37
38/* 38/*
39** Pseudo-indices 39** Pseudo-indices
40** (-LUAI_MAXSTACK is the minimum valid index; we keep some free empty 40** (The stack size is limited to INT_MAX/2; we keep some free empty
41** space after that to help overflow detection) 41** space after that to help overflow detection.)
42*/ 42*/
43#define LUA_REGISTRYINDEX (-LUAI_MAXSTACK - 1000) 43#define LUA_REGISTRYINDEX (-(INT_MAX/2 + 1000))
44#define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) 44#define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i))
45 45
46 46