Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compound assignments with non-unary expr #2293

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

lenticularis39
Copy link
Contributor

@lenticularis39 lenticularis39 commented Jul 11, 2022

Fix parser to accept any expression as the right side of a compound
operation, not only an unary expression.

Fixes #2291

Checklist
  • Language changes are updated in man/adoc/bpftrace.adoc and if needed in docs/reference_guide.md
  • User-visible and non-trivial changes updated in CHANGELOG.md
  • The new behaviour is covered by tests

@lenticularis39 lenticularis39 changed the title Fix compound operations with non-unary expr Fix compound assignments with non-unary expr Jul 11, 2022
Fix parser to accept any expression as the right side of a compound
assignment, not only an unary expression.

Fixes bpftrace#2291
@viktormalik viktormalik requested a review from fbs July 11, 2022 11:08
@fbs
Copy link
Contributor

fbs commented Jul 11, 2022

woops, thanks for the quick fix!

@fbs fbs merged commit 4ac1e34 into bpftrace:master Jul 11, 2022
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.

Plus equals shorthand += requires parenthesis
3 participants