From a2f289ebca43e479ac214d1b68d92e2cc553155d Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 9 Aug 2023 22:54:01 +0900 Subject: [PATCH] Remove unnecessary casts (#328) --- src/rt/atomic.rs | 2 +- src/rt/path.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rt/atomic.rs b/src/rt/atomic.rs index 089de3c5..7f634170 100644 --- a/src/rt/atomic.rs +++ b/src/rt/atomic.rs @@ -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 } diff --git a/src/rt/path.rs b/src/rt/path.rs index da709cf0..7479d7fd 100644 --- a/src/rt/path.rs +++ b/src/rt/path.rs @@ -197,7 +197,7 @@ impl Path { MAX_ATOMIC_HISTORY ); - load.values[i] = store as u8; + load.values[i] = store; load.len += 1; } }