Skip to content

Commit a90e779

Browse files
author
Mike Pall
committed
Merge branch 'master' into v2.1
2 parents f3cf0d6 + 02b5219 commit a90e779

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lj_crecord.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,8 @@ void LJ_FASTCALL lj_crecord_tonumber(jit_State *J, RecordFFData *rd)
18791879
d = ctype_get(cts, CTID_DOUBLE);
18801880
J->base[0] = crec_ct_tv(J, d, 0, J->base[0], &rd->argv[0]);
18811881
} else {
1882+
/* Specialize to the ctype that couldn't be converted. */
1883+
argv2cdata(J, J->base[0], &rd->argv[0]);
18821884
J->base[0] = TREF_NIL;
18831885
}
18841886
}

0 commit comments

Comments
 (0)