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:
C.W. Betts 2021-06-08 15:08:20 -06:00 committed by GitHub
commit b62acab9ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;