Skip to content

fix: correctly check the arg count in precompiler.py - #2165

Merged
rickeylev merged 1 commit into
mainfrom
fix-precompiler-eq
Aug 29, 2024
Merged

fix: correctly check the arg count in precompiler.py#2165
rickeylev merged 1 commit into
mainfrom
fix-precompiler-eq

Conversation

@oprypin

@oprypin oprypin commented Aug 29, 2024

Copy link
Copy Markdown
Contributor

This is supposed to check that all argument counts are equal, but due to an incorrect inversion of the conditional, it was checking that any pair of argument counts is equal

This is supposed to check that all argument counts are equal, but due to an incorrect inversion of the conditional, it was checking that *any* pair of argument counts is equal
@oprypin
oprypin requested a review from rickeylev August 29, 2024 08:39
@oprypin
oprypin requested a review from aignas as a code owner August 29, 2024 08:39
@rickeylev
rickeylev added this pull request to the merge queue Aug 29, 2024
@rickeylev

Copy link
Copy Markdown
Collaborator

Thanks! I forgot that comparison chaining implicitly uses and between the pieces, but a negative comparison doesn't "expand" (I forget the logic term, commute? transitive?) like that, it needs to use or to be logically equivalent.

Merged via the queue into main with commit 31e4771 Aug 29, 2024
@oprypin
oprypin deleted the fix-precompiler-eq branch August 29, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants