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

interp: fix type check in constant unary operations #908

Merged
merged 3 commits into from
Oct 19, 2020
Merged

Conversation

mvertes
Copy link
Member

@mvertes mvertes commented Oct 15, 2020

In unary constant operations, the test for unsigned was defeated by
testing for int first, which is true also for unsigned. Make sure that
testing for unsigned precedes testing for int.

Fixes #907.

In unary constant operations, the test for unsigned was defeated by
testing for int first, which is true also for unsigned. Make sure that
testing for unsigned precedes testing for int.

Fixes #907.
@mvertes mvertes added area/core bug Something isn't working labels Oct 15, 2020
@mvertes mvertes added this to the v0.9.x milestone Oct 15, 2020
In unary constant operations, the test for unsigned was defeated by
testing for int first, which is true also for unsigned. Make sure that
testing for unsigned precedes testing for int.

Fixes #907.
@traefiker traefiker merged commit 804664c into master Oct 19, 2020
@traefiker traefiker deleted the yaegi-fix-907 branch October 19, 2020 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

constant bit operation
3 participants