diff --git a/src/rt/atomic.rs b/src/rt/atomic.rs index 089de3c..7f63417 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 da709cf..7479d7f 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; } }