mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user