summaryrefslogtreecommitdiffstats
path: root/src/vhdlcode.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdlcode.l')
-rw-r--r--src/vhdlcode.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdlcode.l b/src/vhdlcode.l
index 746be45..dfabe5b 100644
--- a/src/vhdlcode.l
+++ b/src/vhdlcode.l
@@ -1352,7 +1352,7 @@ static void generateClassOrGlobalLink(yyscan_t yyscanner,CodeOutputInterface &ol
Definition *d = cd->getOuterScope();
if (d && d->definitionType()==Definition::TypeClass)
{
- cd = dynamic_cast<ClassDef*>(d);
+ cd = toClassDef(d);
}
else
{