| author | |
| committer | |
| log | b15e2054384ba683499138fcad0a9503f3aa9e0b |
| tree | 3de9051bfdae4467f34825195f8c9293589dd221 |
| parent | 1db6018140c20df558fc0259ae0eb28e2e08330f |
1 files changed, 3 insertions(+), 1 deletions(-)
lib/std/math/big/int.zig+3-1| ... | ... | @@ -316,7 +316,9 @@ pub const Mutable = struct { |
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | if (a.limbs.len == 1 and b.limbs.len == 1 and a.positive == b.positive) { |
| 319 | if (!@addWithOverflow(Limb, a.limbs[0], b.limbs[0], &r.limbs[0])) { | |
| 319 | var o: Limb = undefined; | |
| 320 | if (!@addWithOverflow(Limb, a.limbs[0], b.limbs[0], &o)) { | |
| 321 | r.limbs[0] = o; | |
| 320 | 322 | r.len = 1; |
| 321 | 323 | r.positive = a.positive; |
| 322 | 324 | return; |