Skip to content

Commit aff691e

Browse files
committed
fix: typo
Signed-off-by: Woshiluo Luo <[email protected]>
1 parent 4255b65 commit aff691e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/value/riscv_pmu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl EventToMhpmevent<'_> {
3030

3131
pub fn get_selector_value(&self, i: usize) -> u64 {
3232
let current = self.0.get(i);
33-
((u32::from_be(current[1]) as u64) << 32) | (u32::from_be(current[0]) as u64)
33+
((u32::from_be(current[1]) as u64) << 32) | (u32::from_be(current[2]) as u64)
3434
}
3535
}
3636

0 commit comments

Comments
 (0)