diff options
author | Mike Pall <mike> | 2011-02-20 02:13:32 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-02-20 02:13:32 +0100 |
commit | 34bcf6378b7f4100353fe0f82d669432761a533c (patch) | |
tree | 1dc4b275d1881487fc2f2ad383807d1363637a28 /src | |
parent | cf88c43dd687f2db3c32e4497257798851c286d6 (diff) | |
download | luajit-34bcf6378b7f4100353fe0f82d669432761a533c.tar.gz luajit-34bcf6378b7f4100353fe0f82d669432761a533c.tar.bz2 luajit-34bcf6378b7f4100353fe0f82d669432761a533c.zip |
FFI: Fix recording of userdata conversions.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_crecord.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_crecord.c b/src/lj_crecord.c index 63890001..0120b3eb 100644 --- a/src/lj_crecord.c +++ b/src/lj_crecord.c | |||
@@ -365,7 +365,7 @@ static TRef crec_ct_tv(jit_State *J, CType *d, TRef dp, TRef sp, TValue *sval) | |||
365 | } else if (tref_isnil(sp)) { | 365 | } else if (tref_isnil(sp)) { |
366 | sp = lj_ir_kptr(J, NULL); | 366 | sp = lj_ir_kptr(J, NULL); |
367 | } else if (tref_isudata(sp)) { | 367 | } else if (tref_isudata(sp)) { |
368 | sp = emitir(IRT(IR_ADD, IRT_P32), sp, lj_ir_kint(J, sizeof(GCcdata))); | 368 | sp = emitir(IRT(IR_ADD, IRT_P32), sp, lj_ir_kint(J, sizeof(GCudata))); |
369 | } else if (tref_isstr(sp)) { | 369 | } else if (tref_isstr(sp)) { |
370 | if (ctype_isenum(d->info)) { /* Match string against enum constant. */ | 370 | if (ctype_isenum(d->info)) { /* Match string against enum constant. */ |
371 | GCstr *str = strV(sval); | 371 | GCstr *str = strV(sval); |