FFI: Do not resolve strings passed to parameterized types.

master
Mike Pall 2012-06-20 15:45:23 +02:00
parent 6cee1333ef
commit e9e45313e7
1 changed files with 2 additions and 3 deletions

View File

@ -216,9 +216,8 @@ static CPToken cp_param(CPState *cp)
cp->param = o+1;
if (tvisstr(o)) {
cp->str = strV(o);
cp->val.id = lj_ctype_getname(cp->cts, &cp->ct, cp->str, cp->tmask);
if (ctype_type(cp->ct->info) == CT_KW)
return ctype_cid(cp->ct->info);
cp->val.id = 0;
cp->ct = &cp->cts->tab[0];
return CTOK_IDENT;
} else if (tvisnumber(o)) {
cp->val.i32 = numberVint(o);