Fix cdecl string parsing during recording.

This commit is contained in:
Mike Pall 2012-06-28 20:17:08 +02:00
parent a6458ce4de
commit dd9e7a4608

View File

@ -80,6 +80,7 @@ static CTypeID argv2ctype(jit_State *J, TRef tr, cTValue *o)
oldtop = cp.cts->top;
cp.srcname = strdata(s);
cp.p = strdata(s);
cp.param = NULL;
cp.mode = CPARSE_MODE_ABSTRACT|CPARSE_MODE_NOIMPLICIT;
if (lj_cparse(&cp) || cp.cts->top > oldtop) /* Avoid new struct defs. */
lj_trace_err(J, LJ_TRERR_BADTYPE);