compat.fhdl.structure: fix typo.

This commit is contained in:
whitequark 2019-06-25 21:53:08 +00:00
parent b1af0601fa
commit 2f7e52369c

View file

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