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
This commit is contained in:
Andreas Köhler
2007-01-31 16:22:11 +00:00
parent 56e1b2acb7
commit d7be4de889

View File

@@ -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;