Eliminate use of lightuserdata derived from static data pointers.

Required for >47 bit VA, e.g. ARM64.
This commit is contained in:
Mike Pall
2016-11-24 19:14:17 +01:00
parent 81259898ea
commit d7243e1de0
2 changed files with 5 additions and 6 deletions

View File

@@ -399,8 +399,7 @@ static int lj_cf_package_loader_preload(lua_State *L)
/* ------------------------------------------------------------------------ */
static const int sentinel_ = 0;
#define sentinel ((void *)&sentinel_)
#define sentinel ((void *)0x4004)
static int lj_cf_package_require(lua_State *L)
{