Skip to content

Commit

Permalink
fix: seeking on a File wouldn't always happen correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Oakchris1955 committed Aug 19, 2024
1 parent c689a64 commit 9775f2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1014,9 +1014,7 @@ where
}
Ordering::Equal => (),
Ordering::Greater => {
for _ in (self.offset / self.fs.cluster_size()..offset / self.fs.cluster_size())
.step_by(self.fs.cluster_size() as usize)
{
for _ in self.offset / self.fs.cluster_size()..offset / self.fs.cluster_size() {
self.next_cluster()?;
}
self.offset = offset;
Expand Down

0 comments on commit 9775f2a

Please sign in to comment.