forked from tianocore/edk2-pytool-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update operator precedence for post fix evaluation
Equals '==' operator should have a higher precedence than OR and AND. This fixes a bug where a conditional like "!if RACECAR == RACECAR || RACECAR == STREETCAR" would evaluate the last two operators in the wrong order, returning False when it should be True. Removing extra parenthesis at the end of the tokens as it is modifying the input object and is only needed because an opening one is added to the stack.
- Loading branch information
1 parent
55350f3
commit b828b1f
Showing
2 changed files
with
87 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters