Update x86seg.c
Evaluates the bitwise operator first. Fixes a warning in Clang: "logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses]"
This commit is contained in:
parent
84b9af3e05
commit
b62acab9ae
1 changed files with 1 additions and 1 deletions
|
|
@ -3058,7 +3058,7 @@ void x86_smi_enter(void)
|
|||
{
|
||||
uint32_t base;
|
||||
|
||||
if (!cyrix.smhr & SMHR_VALID)
|
||||
if (!(cyrix.smhr & SMHR_VALID))
|
||||
cyrix.smhr = (cyrix.arr[3].base + cyrix.arr[3].size) | SMHR_VALID;
|
||||
base = cyrix.smhr & SMHR_ADDR_MASK;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue