Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/migen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3db32f7073b900273d3def42f5b5481424c772eb
Choose a base ref
..
head repository: m-labs/migen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7845b72841429156f3def8ee4cf4f3e305dda704
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 migen/fhdl/structure.py
2 changes: 1 addition & 1 deletion migen/fhdl/structure.py
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ def __bool__(self):
if isinstance(a, Signal) and isinstance(b, Signal):
return a is b
if isinstance(a, _Slice) and isinstance(b, _Slice):
return (a.value == b.value).__bool__ and (a.start == b.start) and (a.stop == b.stop)
return (bool(a.value == b.value) and (a.start == b.start) and (a.stop == b.stop))
if (isinstance(a, Constant) and isinstance(b, Signal)
or isinstance(a, Signal) and isinstance(b, Constant)):
return False