FFI: Record tonumber() for boxed cdata.

This commit is contained in:
Mike Pall
2011-01-02 18:30:02 +01:00
parent 0005b2c2b9
commit 55a9be7809
4 changed files with 32 additions and 2 deletions

View File

@@ -268,7 +268,8 @@ static void LJ_FASTCALL recff_tonumber(jit_State *J, RecordFFData *rd)
}
#if LJ_HASFFI
} else if (tref_iscdata(tr)) {
recff_nyiu(J);
lj_crecord_tonumber(J, rd);
return;
#endif
} else {
tr = TREF_NIL;