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-8502] Dictionary with Float key types not printed correctly #4490

Open
swift-ci opened this issue Aug 9, 2018 · 1 comment
Open

[SR-8502] Dictionary with Float key types not printed correctly #4490

swift-ci opened this issue Aug 9, 2018 · 1 comment
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

swift-ci commented Aug 9, 2018

Previous ID SR-8502
Radar None
Original Reporter ellis (JIRA User)
Type Bug
Environment

Tested on Swift 4.1.2

Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug
Assignee None
Priority Medium

md5: cdebbaba5502446fab4f332008b98008

Issue Description:

I found that some Dictionaries with Float key types are not displayed correctly in both LLDB for Swift and the Swift REPL. However, it does look like they behave correctly within Swift.

$ swift
Welcome to Apple Swift version 4.1.2 (swiftlang-902.0.54 clang-902.0.39.2). Type :help for assistance.
  1> var map: [Float : Int] = [1.1: 10, 2.2: 20]
map: [Float : Int] = 2 key/value pairs {
  [0] = {
    key = 1.10000002
    value = -6917520261612830720
  }
  [1] = {
    key = 2.20000005
    value = 8766028251136
  }
}
  2> print(map)
[1.10000002: 10, 2.20000005: 20]
@belkadan
Copy link

cc jingham@apple.com (JIRA User)

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

2 participants