Skip to content

Commit

Permalink
Fixed IHave capability check
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed Sep 24, 2023
1 parent 09a96ff commit 886956e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/grammar/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ impl<'x> CompilerState<'x> {
.into_iter()
.chain(self.block_stack.iter())
.any(|b| b.capabilities.contains(capability))
|| self.compiler.no_capability_check
|| (capability != &Capability::Ihave && self.compiler.no_capability_check)
}

#[inline(always)]
Expand Down

0 comments on commit 886956e

Please sign in to comment.