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
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@xwu
Copy link
Collaborator

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

@swift-ci create

@xwu
Copy link
Collaborator Author

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
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

2 participants