summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast/AssignStatementAST.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/slicc/ast/AssignStatementAST.py')
-rw-r--r--src/mem/slicc/ast/AssignStatementAST.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/slicc/ast/AssignStatementAST.py b/src/mem/slicc/ast/AssignStatementAST.py
index 3c3426f5b..042204925 100644
--- a/src/mem/slicc/ast/AssignStatementAST.py
+++ b/src/mem/slicc/ast/AssignStatementAST.py
@@ -45,7 +45,7 @@ class AssignStatementAST(StatementAST):
code("$lcode = $rcode;")
- if ltype != rtype:
+ if not (ltype == rtype or (ltype.isInterface and ltype['interface'] == rtype.ident)):
# FIXME - beckmann
# the following if statement is a hack to allow NetDest
# objects to be assigned to Sets this allows for the