mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Fix cdata equality comparison against other Lua types.
This commit is contained in:
parent
4ed3ee1f04
commit
cc5075e845
@ -79,7 +79,7 @@ static int carith_checkarg(lua_State *L, CTState *cts, CDArith *ca)
|
||||
}
|
||||
} else {
|
||||
ca->ct[i] = NULL;
|
||||
ca->p[i] = NULL;
|
||||
ca->p[i] = (void *)(intptr_t)1; /* To make it unequal. */
|
||||
ok = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user