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

Io: Ensure sign extension for error codes #11618

Merged
merged 1 commit into from
Dec 1, 2018

Conversation

unknownbrackets
Copy link
Collaborator

The ternary cond ? EnumValue : IntValue was not sign extending consistently across compilers, but we actually want it to always sign extend in either case. I actually find it weird that it ever sign extended...

Fixes #11019.

-[Unknown]

The ternary `cond ? EnumValue : IntValue` was not sign extending
consistently across compilers, but we actually want it to always sign
extend in either case.
@unknownbrackets unknownbrackets added this to the v1.8.0 milestone Dec 1, 2018
@hrydgard
Copy link
Owner

hrydgard commented Dec 1, 2018

Huh! That's a tricky one. Nice.

@hrydgard hrydgard merged commit c3bd375 into hrydgard:master Dec 1, 2018
@unknownbrackets unknownbrackets deleted the io-error branch December 1, 2018 22:47
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.

2 participants