[Gnucash-changes] fix yet another intermediate-math overflow bug.

Linas Vepstas linas at linas.org
Mon Jul 5 12:17:32 EDT 2004

On Sun, Jul 04, 2004 at 09:43:11AM -0400, Derek Atkins was heard to remark:
> Linas,
> This code looks like it could still overflow if either of the denom's
> are negative.  Granted, denoms _shouldn't_ be negative, but someone
> could theoretically create one that way.

Yes, well, negative denominators are supposed to mean something 
completely different, and I don't feel like debugging that.

numeric (a, -b) is supposed to have a value of a*b not -a/b

I don't think this is used anywhere, but I didn't want to break
what is there.


pub  1024D/01045933 2001-02-01 Linas Vepstas (Labas!) <linas at linas.org>
PGP Key fingerprint = 8305 2521 6000 0B5E 8984  3F54 64A9 9A82 0104 5933

More information about the gnucash-devel mailing list