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
The current addition and subtraction methods have this structure:
@inlinablepublicmutatingfunc addReportingOverflow(_ other:Self)->Bool{leta:Bool=self.low .addReportingOverflow(other.low )letb:Bool=self.high.addReportingOverflow(other.high)letc:Bool= a && self.high.addReportingOverflow(1asDigit)return b || c // this should be « b != c » (!)}
The problem is that b and c will negate each other when Self is signed. See regression tests below:
From oscbyspro/Numberick#3:
The text was updated successfully, but these errors were encountered: