diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lj_cconv.c | 1 | ||||
| -rw-r--r-- | src/lj_crecord.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_cconv.c b/src/lj_cconv.c index de4938e4..90cd36e3 100644 --- a/src/lj_cconv.c +++ b/src/lj_cconv.c | |||
| @@ -702,6 +702,7 @@ static void cconv_substruct_init(CTState *cts, CType *d, uint8_t *dp, | |||
| 702 | } else if (ctype_isxattrib(df->info, CTA_SUBTYPE)) { | 702 | } else if (ctype_isxattrib(df->info, CTA_SUBTYPE)) { |
| 703 | cconv_substruct_init(cts, ctype_rawchild(cts, df), | 703 | cconv_substruct_init(cts, ctype_rawchild(cts, df), |
| 704 | dp+df->size, o, len, ip); | 704 | dp+df->size, o, len, ip); |
| 705 | if ((d->info & CTF_UNION)) break; | ||
| 705 | } /* Ignore all other entries in the chain. */ | 706 | } /* Ignore all other entries in the chain. */ |
| 706 | } | 707 | } |
| 707 | } | 708 | } |
diff --git a/src/lj_crecord.c b/src/lj_crecord.c index 4e64f431..acd786f5 100644 --- a/src/lj_crecord.c +++ b/src/lj_crecord.c | |||
| @@ -1466,6 +1466,7 @@ void LJ_FASTCALL recff_cdata_arith(jit_State *J, RecordFFData *rd) | |||
| 1466 | } | 1466 | } |
| 1467 | } else if (!tref_isnum(tr)) { | 1467 | } else if (!tref_isnum(tr)) { |
| 1468 | tr = 0; | 1468 | tr = 0; |
| 1469 | ct = ctype_get(cts, CTID_P_VOID); | ||
| 1469 | } | 1470 | } |
| 1470 | ok: | 1471 | ok: |
| 1471 | s[i] = ct; | 1472 | s[i] = ct; |
