[poincare] Add non-zero assertion in Integer::udiv

This commit is contained in:
Léa Saviot
2018-09-17 11:04:28 +02:00
parent 257194507c
commit 41ae49ccf5

View File

@@ -602,6 +602,7 @@ IntegerDivision Integer::udiv(const Integer & numerator, const Integer & denomin
half_native_uint_t b = denominator.halfDigit(denominator.numberOfHalfDigits()-1);
half_native_uint_t halfBase = 1 << (16-1);
int pow = 0;
assert(b != 0);
while (!(b & halfBase)) {
b = b << 1;
pow++;