diff options
| author | ruki <[email protected]> | 2026-03-30 22:42:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-30 22:42:26 +0800 |
| commit | a238b2bbe444cab41480587d41d68b8258d051e2 (patch) | |
| tree | 93e101be1b8c6ce3fb556e71758b997a28fd3bd6 /xmake/scripts/module | |
| parent | 1c90ee36327264374e57b5f5070be33c53af0bea (diff) | |
fix xmi.h
Diffstat (limited to 'xmake/scripts/module')
| -rw-r--r-- | xmake/scripts/module/xmi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/scripts/module/xmi.h b/xmake/scripts/module/xmi.h index 56689e068..a58ebb159 100644 --- a/xmake/scripts/module/xmi.h +++ b/xmake/scripts/module/xmi.h @@ -67,7 +67,7 @@ # define XMI_LUA_GLOBALSINDEX (-10002) # define xmi_lua_upvalueindex(i) (XMI_LUA_GLOBALSINDEX - (i)) #else -# define XMI_LUA_REGISTRYINDEX (-LUAI_MAXSTACK - 1000) +# define LUA_LUA_REGISTRYINDEX (-(INT_MAX/2 + 1000)) # define xmi_lua_upvalueindex(i) (XMI_LUA_REGISTRYINDEX - (i)) #endif |
