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

Make the precendence order of &,^,| higher than the comparison operators in Pancake #1006

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DoomishGuy
Copy link
Contributor

Made the precendence of the bitwise operators higher than the comparison operators. The last four lines of the following snippet should all now give z=1. The previous precedence order resulted in z=0 in the first line, and z=1 in the other three lines.

fun cmps () {
    var x = 2;
    var y = 3;
    var z = (x & y != 0);
    z = ((x & y) != 0);
    z = (y & x != 0);
    z = ((y & x) != 0);
}

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.

None yet

1 participant