[coyotos-dev] BigNum.cxx again [was: BigNum.cxx buglet?]
Jonathan S. Shapiro
shap at eros-os.com
Sun Sep 30 20:09:55 EDT 2007
On Sun, 2007-09-30 at 22:21 +0200, Thomas Stratmann wrote:
> on line 227:
>
> BigNum BigNum::lshift_digits(size_t n) const
> {
> if ((nDigits == 0) && (oneDigit == 0))
> return *this;
>
>
> I *think* this is supposed to be
>
> if ((nDigits == 1) && (oneDigit == 0))
>
> Can nDigits == 0 happen in any way?
nDigits == 0 is a malformed BigNum.
shap
More information about the coyotos-dev
mailing list