Merge pull request #26 from MaddTheSane/patch-2

Update x86seg.c. Evaluates the bitwise operator first.
This 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:
sarah-walker-pcem 2021-06-10 18:28:43 +01:00 committed by GitHub
commit 4488890386
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;