compat.fhdl.structure: fix typo.
authorwhitequark <cz@m-labs.hk>
Tue, 25 Jun 2019 21:53:08 +0000 (21:53 +0000)
committerwhitequark <cz@m-labs.hk>
Tue, 25 Jun 2019 22:01:14 +0000 (22:01 +0000)
nmigen/compat/fhdl/structure.py

index 4a99195a24321abe32d676b1b68dc2d02a7a38fa..1f374d4e753e1722777fc980dadb9f0cca4aa3ee 100644 (file)
@@ -88,6 +88,7 @@ class Case(ast.Switch):
                 raise TypeError("Case object is not a Migen constant")
             if isinstance(k, str) and k == "default":
                 default = v
+                continue
             else:
                 k = k.value
             new_cases.append((k, v))