Skip to content

Commit ca797a3

Browse files
committed
Fix Misa::has_extension()
1 parent 3307043 commit ca797a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/register/misa.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl Misa {
4343
if bit > 25 {
4444
return false;
4545
}
46-
self.bits() & (1 >> bit) == (1 >> bit)
46+
self.bits() & (1 << bit) == (1 << bit)
4747
}
4848
}
4949

0 commit comments

Comments
 (0)