mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
A couple of performance tweaks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12261 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -785,6 +785,11 @@ gnc_numeric_convert(gnc_numeric in, gint64 denom, gint how)
|
||||
if(in.denom == denom) {
|
||||
return in;
|
||||
}
|
||||
if(in.num == 0) {
|
||||
out.num = 0;
|
||||
out.denom = denom;
|
||||
return out;
|
||||
}
|
||||
|
||||
/* If the denominator of the input value is negative, get rid of that. */
|
||||
if(in.denom < 0) {
|
||||
|
||||
Reference in New Issue
Block a user