Skip to content

Commit

Permalink
Update x86seg.c
Browse files Browse the repository at this point in the history
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]"
  • Loading branch information
MaddTheSane authored Jun 8, 2021
1 parent 84b9af3 commit b62acab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/x86seg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b62acab

Please sign in to comment.