Skip to content

[stdlib] update the fatal error message displayed during invalid integer conversions #16480

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 1 commit into from
May 10, 2018

Conversation

ravikandhadai
Copy link
Contributor

(rdar://39542040)

@ravikandhadai ravikandhadai requested a review from moiseev May 9, 2018 21:15
@ravikandhadai
Copy link
Contributor Author

@moiseev As I had discussed, I have removed "signed" qualifier from the error message printed during integer conversions. Let me know if the new error message sounds okay or if you would prefer to change it. Now if you do,

let x: UInt = 128
Int8(x)
Fatal error: Not enough bits to represent the passed value:

We used to get "Fatal error: Not enough bits to represent a signed value:"

Copy link
Contributor

@moiseev moiseev left a comment

Choose a reason for hiding this comment

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

:shipit:

@moiseev
Copy link
Contributor

moiseev commented May 9, 2018

@swift-ci Please smoke test

Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

Nice!

@xedin
Copy link
Contributor

xedin commented May 9, 2018

@swift-ci please smoke test

@xedin
Copy link
Contributor

xedin commented May 9, 2018

It's not triggering for some reason...

@ravikandhadai
Copy link
Contributor Author

Yes it happens if there is a force push to the branch.

@ravikandhadai
Copy link
Contributor Author

@swift-ci please smoke test

1 similar comment
@shahmishal
Copy link
Member

@swift-ci please smoke test

@shahmishal
Copy link
Member

@swift-ci smoke test

@shahmishal
Copy link
Member

@swift-ci test

@airspeedswift airspeedswift merged commit 1c0d598 into swiftlang:master May 10, 2018
@ravikandhadai
Copy link
Contributor Author

Seems like all checks have passed. Good to be merged?

@ravikandhadai
Copy link
Contributor Author

Thanks @airspeedswift !

ravikandhadai added a commit to ravikandhadai/swift that referenced this pull request Jun 15, 2018
ravikandhadai added a commit that referenced this pull request Jun 15, 2018
[4.2][stdlib] update the fatal error message displayed during invalid int-to-int conversions (<rdar://39542040>) (#16480)
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.

5 participants