2
0
Эх сурвалжийг харах

Merge branch 'master' into v2.1

Mike Pall 11 жил өмнө
parent
commit
72c661e2b8
2 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 1 0
      src/lj_cconv.c
  2. 1 0
      src/lj_crecord.c

+ 1 - 0
src/lj_cconv.c

@@ -702,6 +702,7 @@ static void cconv_substruct_init(CTState *cts, CType *d, uint8_t *dp,
     } else if (ctype_isxattrib(df->info, CTA_SUBTYPE)) {
       cconv_substruct_init(cts, ctype_rawchild(cts, df),
 			   dp+df->size, o, len, ip);
+      if ((d->info & CTF_UNION)) break;
     }  /* Ignore all other entries in the chain. */
   }
 }

+ 1 - 0
src/lj_crecord.c

@@ -1466,6 +1466,7 @@ void LJ_FASTCALL recff_cdata_arith(jit_State *J, RecordFFData *rd)
       }
     } else if (!tref_isnum(tr)) {
       tr = 0;
+      ct = ctype_get(cts, CTID_P_VOID);
     }
   ok:
     s[i] = ct;