Avoid even more divisions by zero in test-numeric.

Improve r15474 by repeating a test run if |nb|<4 holds, because nb is
divided twice by two, potentially becoming zero.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15480 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/module-cleanup
Andreas Köhler 20 years ago
parent 56e1b2acb7
commit d7be4de889

@ -636,7 +636,7 @@ check_mult_div (void)
gint64 ne;
/* avoid 0 */
if (nb == 0) { i--; continue; }
if (nb/4 == 0) { i--; continue; }
/* avoid overflow; */
na /= 2;

Loading…
Cancel
Save