Skip to content

Conversation

@stephentyrone
Copy link
Contributor

Currently this is implemented as Float80(literal), which gets interpreted as Float80(Double(literal)), unfortunately. Switch to the correct spelling: literal as Float80.

Resolves rdar://problem/35459284

@stephentyrone
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@airspeedswift airspeedswift left a comment

Choose a reason for hiding this comment

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

Fine with merging as is, but I think you can remove more code without harm.

return 0x1.921fb54442d18p1 as Double
%elif bits == 80:
return Float80(0x1.921fb54442d1846ap1)
return 0x1.921fb54442d1846ap1 as Float80
Copy link
Member

Choose a reason for hiding this comment

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

The type of var pi itself ought to be enough type context, you can probably drop the as.

@stephentyrone
Copy link
Contributor Author

@swift-ci Please test.

@stephentyrone
Copy link
Contributor Author

@airspeedswift You're absolutely right. Updated.

@stephentyrone
Copy link
Contributor Author

@swift-ci please smoke test

@swiftlang swiftlang deleted a comment from swift-ci Nov 14, 2017
@swiftlang swiftlang deleted a comment from swift-ci Nov 14, 2017
@swiftlang swiftlang deleted a comment from swift-ci Nov 14, 2017
@stephentyrone stephentyrone merged commit c7f1df4 into swiftlang:master Nov 15, 2017
@stephentyrone stephentyrone deleted the fix-float80-pi branch November 15, 2017 17:32
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