FFI: Fix cdata equality comparison against other Lua types.

This commit is contained in:
Mike Pall 2014-04-08 16:53:41 +02:00
parent 4ed3ee1f04
commit cc5075e845

View File

@ -79,7 +79,7 @@ static int carith_checkarg(lua_State *L, CTState *cts, CDArith *ca)
} }
} else { } else {
ca->ct[i] = NULL; ca->ct[i] = NULL;
ca->p[i] = NULL; ca->p[i] = (void *)(intptr_t)1; /* To make it unequal. */
ok = 0; ok = 0;
} }
} }