Fixes: Implementation of NewExpressionAST::lastToken()

This commit is contained in:
Roberto Raggi
2009-02-16 15:42:26 +01:00
parent 3666883f23
commit 2788d77229

View File

@@ -1178,7 +1178,7 @@ unsigned DeclaratorListAST::lastToken() const
{
for (const DeclaratorListAST *it = this; it; it = it->next) {
if (! it->next)
return it->lastToken();
return it->declarator->lastToken();
}
return 0;
}