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
I've also found it by storing date intervals in the 80s. It's dangerous how you can run into it, just by inserting any data structure into a set that has a date interval someplace, invoking hashValue implicitly.
Environment
macOS 10.14.3 (18D109), Xcode 10.2 beta 3 (10P99q)
Additional Detail from JIRA
md5: 98da45bd6998a1ea31621ea1cc7b8bf3
Issue Description:
The following code:
crashes in runtime due to casting negative value of Double to UInt on this line: https://github.com/apple/swift/blob/6e7051eb1e38e743a514555d09256d12d3fec750/stdlib/public/Darwin/Foundation/DateInterval.swift#L159
There's what seems to be an abandoned PR for exactly this bug: apple/swift#20106
The text was updated successfully, but these errors were encountered: