You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 7.3.1 (7D1014), swiftlang-2.2, lldb-350.0.21.9
Additional Detail from JIRA
Votes
0
Component/s
LLDB for Swift
Labels
Bug
Assignee
None
Priority
Medium
md5: 38e2ee1eb1c8ecb53f5b08a8f0979004
duplicates:
SR-1007 Unsigned integer types have incorrect max values
Issue Description:
I've discovered that the debugger is presenting negative numbers in a `UInt8` array, which could not be possible.
I cannot share the data that made this issue come up, but this is what I'm doing:
letcount = data.length / sizeof(UInt8)
// create an array of Uint8vararray = [UInt8](count: count, repeatedValue: 0)
// copy bytes into arraydata.getBytes(&array, length:count * sizeof(UInt8))
The `data` parameter is an NSData that contains a sequence of `UInt8` values in binary form, and this same code parses a similar file (but of type `Float`) without any issues.
I'm attaching a screenshot of the Xcode debugger showing the contents of the `data` array.
The text was updated successfully, but these errors were encountered:
Attachment: Download
Environment
Version 7.3.1 (7D1014), swiftlang-2.2, lldb-350.0.21.9
Additional Detail from JIRA
md5: 38e2ee1eb1c8ecb53f5b08a8f0979004
duplicates:
Issue Description:
I've discovered that the debugger is presenting negative numbers in a `UInt8` array, which could not be possible.
I cannot share the data that made this issue come up, but this is what I'm doing:
The `data` parameter is an NSData that contains a sequence of `UInt8` values in binary form, and this same code parses a similar file (but of type `Float`) without any issues.
I'm attaching a screenshot of the Xcode debugger showing the contents of the `data` array.
The text was updated successfully, but these errors were encountered: