Skip to content

Simplifications: fixed "^ is a binary operator" - #11

Open
CLOVIS-AI wants to merge 1 commit into
serpilliere:rust_versionfrom
CLOVIS-AI:python/high-simplifications
Open

Simplifications: fixed "^ is a binary operator"#11
CLOVIS-AI wants to merge 1 commit into
serpilliere:rust_versionfrom
CLOVIS-AI:python/high-simplifications

Conversation

@CLOVIS-AI

Copy link
Copy Markdown

In Miasm Python, using ^ and + as unary operators is allowed. In Miasm Rust, it's not.

This patch fixes two tests by teaching Python what to do when a unary operator is necessary:
a op b == a op c <=> b == c
when 'op' is ^ or +

In Miasm Python, using ^ and + as unary operators is allowed. In Miasm Rust, it's not.

This patch fixes two tests by teaching Python what to do when a unary operator is necessary:
a op b == a op c  <=>  b == c
when 'op' is ^ or +
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.

1 participant