diff options
author | Mike Pall <mike> | 2014-04-08 16:53:41 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2014-04-08 16:53:41 +0200 |
commit | cc5075e845368538e239a64a34a68c702fbf529d (patch) | |
tree | 9a79e51a5c315300644bbe653220ac2da3c96070 /src | |
parent | 4ed3ee1f046618c5251baae3013f125b4cc7ca9c (diff) | |
download | luajit-cc5075e845368538e239a64a34a68c702fbf529d.tar.gz luajit-cc5075e845368538e239a64a34a68c702fbf529d.tar.bz2 luajit-cc5075e845368538e239a64a34a68c702fbf529d.zip |
FFI: Fix cdata equality comparison against other Lua types.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_carith.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_carith.c b/src/lj_carith.c index 36d7abb1..9a451b24 100644 --- a/src/lj_carith.c +++ b/src/lj_carith.c | |||
@@ -79,7 +79,7 @@ static int carith_checkarg(lua_State *L, CTState *cts, CDArith *ca) | |||
79 | } | 79 | } |
80 | } else { | 80 | } else { |
81 | ca->ct[i] = NULL; | 81 | ca->ct[i] = NULL; |
82 | ca->p[i] = NULL; | 82 | ca->p[i] = (void *)(intptr_t)1; /* To make it unequal. */ |
83 | ok = 0; | 83 | ok = 0; |
84 | } | 84 | } |
85 | } | 85 | } |