Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eightlay committed Jan 20, 2023
1 parent ce02212 commit 1e032cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ijim/interval_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def add(self, other: IntervalMap | AnyValueType) -> None:
other._lpoints[i + 1],
other[other._lpoints[i]]
)
if len(self._lpoints) > 0:
if len(other._lpoints) > 0:
self.slice_add(other._lpoints[-1], None, other._vals[-1])
else:
for i in range(1, len(self._vals)):
Expand Down

0 comments on commit 1e032cc

Please sign in to comment.