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

[SR-14293] Conversion of negative Float16 value to UInt32 incorrectly succeeds #56652

Closed
xwu opened this issue Mar 2, 2021 · 2 comments
Closed

[SR-14293] Conversion of negative Float16 value to UInt32 incorrectly succeeds #56652

xwu opened this issue Mar 2, 2021 · 2 comments

Comments

@xwu
Copy link
Collaborator

@xwu xwu commented Mar 2, 2021

Previous ID SR-14293
Radar rdar://problem/74938483
Original Reporter @xwu
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee @xwu
Priority Medium

md5: 276bf55049a6b48f54e13a5ff5997e74

Issue Description:

let x = -1.1 as Float16
UInt32(x) // 0 -- Uh oh.
@typesanitizer
Copy link

@typesanitizer typesanitizer commented Mar 2, 2021

@swift-ci create

@xwu
Copy link
Collaborator Author

@xwu xwu commented Mar 21, 2021

Fixed in #36219.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants