diff options
author | Mike Pall <mike> | 2011-04-15 19:02:47 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-04-15 19:02:47 +0200 |
commit | 5f08a50506d47813edacd78b688af31da4bc4ce2 (patch) | |
tree | fdd8117703dfb70978f3ba5c999c27aa84058e5e | |
parent | 31e0774a9e6dfcc8ddfa6669fb225473fbc4ad78 (diff) | |
download | luajit-5f08a50506d47813edacd78b688af31da4bc4ce2.tar.gz luajit-5f08a50506d47813edacd78b688af31da4bc4ce2.tar.bz2 luajit-5f08a50506d47813edacd78b688af31da4bc4ce2.zip |
FFI: Fix arithmetic ctype metamethods for references.
-rw-r--r-- | src/lj_ctype.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_ctype.c b/src/lj_ctype.c index 0b59b48d..85e9a0ba 100644 --- a/src/lj_ctype.c +++ b/src/lj_ctype.c | |||
@@ -311,7 +311,7 @@ cTValue *lj_ctype_meta(CTState *cts, CTypeID id, MMS mm) | |||
311 | { | 311 | { |
312 | CType *ct = ctype_get(cts, id); | 312 | CType *ct = ctype_get(cts, id); |
313 | cTValue *tv; | 313 | cTValue *tv; |
314 | while (ctype_isattrib(ct->info)) { | 314 | while (ctype_isattrib(ct->info) || ctype_isref(ct->info)) { |
315 | id = ctype_cid(ct->info); | 315 | id = ctype_cid(ct->info); |
316 | ct = ctype_get(cts, id); | 316 | ct = ctype_get(cts, id); |
317 | } | 317 | } |