Todd T. Fries patch for compilation on OpenBSD 64bit architectures.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11267 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/cashutil
David Hampton 21 years ago
parent e5ab6b7529
commit 22357f89d3

@ -1,3 +1,8 @@
2005-08-15 David Hampton <hampton@employees.org>
* src/engine/Query.c: Todd T. Fries patch for compilation on
OpenBSD 64bit architectures.
2005-08-15 Derek Atkins <derek@ihtfp.com>
* src/business/business-core/business-core.scm: need to

@ -547,12 +547,15 @@ xaccQueryGetEarliestDateFound(Query * q)
{
GList * spl;
Split * sp;
time_t earliest = LONG_MAX;
time_t earliest;
if (!q) return 0;
spl = qof_query_last_run (q);
if (!spl) return 0;
/* Safe until 2038 on archs where time_t is 32bit */
sp = spl->data;
earliest = (time_t) sp->parent->date_posted.tv_sec;
for(; spl; spl=spl->next) {
sp = spl->data;
if(sp->parent->date_posted.tv_sec < earliest) {

Loading…
Cancel
Save