Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clean up alignement calculation
  • Loading branch information
brandtbucher committed Mar 14, 2024
commit 36c6c78af6149b7bfe589782a22bba7dbe89781b
2 changes: 1 addition & 1 deletion Tools/jit/_stencils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def remove_jump(self, *, alignment: int = 1) -> None:
offset -= 2
case _:
return
if self.body[offset:] == jump and len(self.body[:offset]) % alignment == 0:
if self.body[offset:] == jump and offset % alignment == 0:
self.body = self.body[:offset]
self.holes.remove(hole)

Expand Down