Skip to content

Commit

Permalink
Fix index logic
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Sep 14, 2023
1 parent 9e6f537 commit 8cd81d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magma/tuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ def wire(self, o, debug_info):
)
return

for k in self.keys():
if not type(self)[k].is_wireable(type(o)[k]):
for i, k in enumerate(self.keys()):
if not type(self)[i].is_wireable(type(o)[i]):
_logger.error(
WiringLog(f"Cannot wire {{}} (type={type(o)}, to "
f" {{}} (type={type(self)})"
Expand Down

0 comments on commit 8cd81d9

Please sign in to comment.