AUDIT: r16619 - gnucash/trunk/src/engine - #492137: Patch from Mike Alexander to fix regression in lot scrubber introduced in r16370.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Dec 8 09:11:04 EST 2007


Author: andi5
Date: 2007-12-08 09:11:03 -0500 (Sat, 08 Dec 2007)
New Revision: 16619
Trac: http://svn.gnucash.org/trac/changeset/16619

Modified:
   gnucash/trunk/src/engine/cap-gains.c
Log:
#492137: Patch from Mike Alexander to fix regression in lot scrubber introduced in r16370.

Timespec uses a signed integer for the seconds instead of an unsigned.

BP


Modified: gnucash/trunk/src/engine/cap-gains.c
===================================================================
--- gnucash/trunk/src/engine/cap-gains.c	2007-12-07 18:35:57 UTC (rev 16618)
+++ gnucash/trunk/src/engine/cap-gains.c	2007-12-08 14:11:03 UTC (rev 16619)
@@ -168,7 +168,7 @@
 static inline GNCLot *
 xaccAccountFindOpenLot (Account *acc, gnc_numeric sign, 
    gnc_commodity *currency,
-   guint64 guess,
+   gint64 guess,
    gboolean (*date_pred)(Timespec, Timespec))
 {
    struct find_lot_s es;
@@ -195,7 +195,7 @@
           sign.denom);
       
    lot = xaccAccountFindOpenLot (acc, sign, currency,
-                   G_MAXUINT64, earliest_pred);
+                   G_MAXINT64, earliest_pred);
    LEAVE ("found lot=%p %s baln=%s", lot, gnc_lot_get_title (lot),
                gnc_num_dbg_to_string(gnc_lot_get_balance(lot)));
    return lot;
@@ -210,7 +210,7 @@
 	  sign.num, sign.denom);
       
    lot = xaccAccountFindOpenLot (acc, sign, currency,
-                   0, latest_pred);
+                   G_MININT64, latest_pred);
    LEAVE ("found lot=%p %s", lot, gnc_lot_get_title (lot));
    return lot;
 }



More information about the gnucash-changes mailing list