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'm not sure I'd consider this a bug, because it works, but it can be improved. Swift's documentation states that dividingFullWidth(_:) may cause a run-time error in the case of overflow. Well, it doesn't, and I'm using the current behavior in my implementation of [...]ReportingOverflow(_:). Here's the relevant line, but not the whole method:
While this is correct in Swift 5.8, it may or may not be future-proof. I could reimplement the entire dividing thingy, but that's a pain. Alternatively, I can do the truncation myself then pass the value to dividingFullWidth(_:).
The text was updated successfully, but these errors were encountered:
From oscbyspro/Numberick#18
The text was updated successfully, but these errors were encountered: