Skip to content

Commit

Permalink
Remove unnecessary casts (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored Aug 9, 2023
1 parent fa9eb42 commit a2f289e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rt/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -927,5 +927,5 @@ fn range(cnt: u16) -> (usize, usize) {
}

fn index(cnt: u16) -> usize {
cnt as usize % MAX_ATOMIC_HISTORY as usize
cnt as usize % MAX_ATOMIC_HISTORY
}
2 changes: 1 addition & 1 deletion src/rt/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl Path {
MAX_ATOMIC_HISTORY
);

load.values[i] = store as u8;
load.values[i] = store;
load.len += 1;
}
}
Expand Down

0 comments on commit a2f289e

Please sign in to comment.