Skip to content

Fix consecutive substractions #25

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

Merged
merged 4 commits into from
May 8, 2017
Merged

Fix consecutive substractions #25

merged 4 commits into from
May 8, 2017

Conversation

andyjansson
Copy link
Contributor

Fixes #24

@@ -115,12 +115,12 @@ function reduceAddSubExpression(node, precision) {
// (something + value) + value => something + (value + value)
// (something - value) + value => something - (value + value)
Copy link
Contributor

@sylvainpolletvillard sylvainpolletvillard May 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andyjansson by the way this is also false, it should be:
(something - valueA) + valueB => something - (valueA - valueB)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know. I'm fixing that now.

@ben-eb
Copy link
Collaborator

ben-eb commented May 8, 2017

Thanks! 👍

@ben-eb ben-eb merged commit 3cc9df4 into MoOx:master May 8, 2017
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.

3 participants