Browse Source

FFI: Do not resolve strings passed to parameterized types.

Mike Pall 13 years ago
parent
commit
e9e45313e7
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/lj_cparse.c

+ 2 - 3
src/lj_cparse.c

@@ -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);