Closed ghost closed 7 years ago
In file bigint.cpp around line 73, I found this code:
Bigint &Bigint::operator+=(Bigint const &b) { if (!b.positive) { return *this -= b; } if (!b.positive && positive) { positive = false; }
The first if make it returned when !b.positive, then the second if can't be true, right? So it should be dead code
if
!b.positive
pull #11
pull #11 closed. pull #12 instead
Closed since https://github.com/kasparsklavins/bigint/pull/12 has been merged.
In file bigint.cpp around line 73, I found this code:
The first
if
make it returned when!b.positive
, then the secondif
can't be true, right? So it should be dead code