fix the test case; it really is an overflow on division, there's a

Derek Atkins warlord at MIT.EDU
Sat Jun 26 19:30:46 EDT 2004


Linas Vepstas <linas at cvs.gnucash.org> writes:

> fix the test case; it really is an overflow on division, 
> there's a bunch of huge prime numbers involved.

Unfortunately this test-case actually came from test-query..  It had
created a random transaction that happened to have those two values as
the amount and value and was trying to compute the shareprice.
Obviously that calculation failed, which caused the test-query to
fail.

Could you please explain exactly what a division overflow means?

If this test-case really is going to over-flow on this operation then
we need to fix all the other tests to make "reasonable" random
gnc-numerics.  Go run 'test-query' and watch it fail consistently
(although not necessarily 100% of the time).

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list