Skip to content

Fix finding start of v1 piece ranges#9

Merged
sneakers-the-rat merged 2 commits intomainfrom
fix-piece-ranges
Aug 21, 2025
Merged

Fix finding start of v1 piece ranges#9
sneakers-the-rat merged 2 commits intomainfrom
fix-piece-ranges

Conversation

@sneakers-the-rat
Copy link
Contributor

@sneakers-the-rat sneakers-the-rat commented Aug 21, 2025

Incorrectly used modulo to find start of piece rather than subtraction, which could cause duplicate v1 piece ranges in the case where e.g. there were two files that were piece-aligned.


📚 Documentation preview 📚: https://torrent-models--9.org.readthedocs.build/en/9/

@sneakers-the-rat sneakers-the-rat added the bug Something isn't working label Aug 21, 2025
@sneakers-the-rat sneakers-the-rat merged commit 477ac1c into main Aug 21, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant