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
This commit is contained in:
David Hampton 2005-08-16 01:55:25 +00:00
parent e5ab6b7529
commit 22357f89d3
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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) {