Fixed the type of the magic property .funcptr"

This commit is contained in:
Alexey Prokhin
2011-01-03 18:49:45 +03:00
parent e32d033d7e
commit 9e3ef5e905

View File

@@ -5619,14 +5619,14 @@ Expression *TypeDelegate::dotExp(Scope *sc, Expression *e, Identifier *ident)
#endif
if (ident == Id::ptr)
{
e = new GEPExp(e->loc, e, ident, 0);
e = new GEPExp(e->loc, e, ident, 0);
e->type = tvoidptr;
return e;
}
else if (ident == Id::funcptr)
{
e = new GEPExp(e->loc, e, ident, 1);
e->type = tvoidptr;
e->type = next->pointerTo();
return e;
}
else