[SR-12073] dividingFullWidth is missing overflow checks #54509
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
numerics
Area → standard library: Numeric API
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: c29bc2f189c69046b795880fe2c71338
Issue Description:
Reported in the forums here: https://forums.swift.org/t/signed-integer-big-division-wraps-around-to-negative/32817
We should also take this opportunity to provide a generic implementation on FixedWidthInteger, like I did a few months ago for the full-width multiply.
The text was updated successfully, but these errors were encountered: