mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 09:45:19 +08:00
fix: MASK should be wrapped by paren
This commit is contained in:
parent
615dac5f5c
commit
ff02847885
@ -1,6 +1,6 @@
|
|||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! MASK {
|
macro_rules! MASK {
|
||||||
($bits:expr) => {
|
($bits:expr) => {
|
||||||
(1 << $bits) - 1
|
((1 << $bits) - 1)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user