Browse Source

Merge branch 'master' into v2.1

Mike Pall 7 năm trước cách đây
mục cha
commit
a90e7795ca
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/lj_crecord.c

+ 2 - 0
src/lj_crecord.c

@@ -1879,6 +1879,8 @@ void LJ_FASTCALL lj_crecord_tonumber(jit_State *J, RecordFFData *rd)
       d = ctype_get(cts, CTID_DOUBLE);
     J->base[0] = crec_ct_tv(J, d, 0, J->base[0], &rd->argv[0]);
   } else {
+    /* Specialize to the ctype that couldn't be converted. */
+    argv2cdata(J, J->base[0], &rd->argv[0]);
     J->base[0] = TREF_NIL;
   }
 }