diff options
Diffstat (limited to '')
-rw-r--r-- | lua.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | ||