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-1138] Unsigned types display as signed in REPL (UInt8, UInt16, UInt32, UInt64) #4527

Closed
swift-ci opened this issue Apr 4, 2016 · 1 comment
Labels
bug Something isn't working LLDB for Swift REPL

Comments

@swift-ci
Copy link

swift-ci commented Apr 4, 2016

Previous ID SR-1138
Radar None
Original Reporter jd20 (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

OSX 10.11.4 (15E65), Swift 2.2

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

md5: 2d2afd2d1c9e64fbafa900f1e21ac285

duplicates:

  • SR-1007 Unsigned integer types have incorrect max values

Issue Description:

When the REPL evaluates unsigned values, they display as if they were signed. print() shows the correct unsigned value however. Probably related to: https://bugs.swift.org/browse/SR-1007

Example:
1> var x: UInt8 = 150
x: UInt8 = -106
2> print❌
150
3> var y: UInt16 = 50000
y: UInt16 = -15536
4> var z: UInt32 = 3000000000
z: UInt32 = -1294967296

@belkadan
Copy link

belkadan commented Apr 4, 2016

Yep, should be fixed in master.

@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
This issue was closed.
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 REPL
Projects
None yet
Development

No branches or pull requests

2 participants