Fix Misa::has_extension()

This commit is contained in:
Vadim Kaushan 2019-04-01 19:58:40 +03:00
parent 33070435a0
commit ca797a35d8
No known key found for this signature in database
GPG Key ID: A501C5DF67C05C4E
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ impl Misa {
if bit > 25 {
return false;
}
self.bits() & (1 >> bit) == (1 >> bit)
self.bits() & (1 << bit) == (1 << bit)
}
}