gnucash maint: Fix gcc compilation errors.
John Ralls
jralls at code.gnucash.org
Thu Apr 7 19:02:42 EDT 2022
Updated via https://github.com/Gnucash/gnucash/commit/fbaa416c (commit)
from https://github.com/Gnucash/gnucash/commit/7b1c0509 (commit)
commit fbaa416cfbc408f8e76ea28d8dbfa6281df03c30
Author: John Ralls <jralls at ceridwen.us>
Date: Thu Apr 7 16:02:27 2022 -0700
Fix gcc compilation errors.
diff --git a/gnucash/import-export/aqb/gnc-ab-utils.c b/gnucash/import-export/aqb/gnc-ab-utils.c
index d0804cffc..9707746b9 100644
--- a/gnucash/import-export/aqb/gnc-ab-utils.c
+++ b/gnucash/import-export/aqb/gnc-ab-utils.c
@@ -93,7 +93,7 @@ struct _GncABImExContextImport
GData *tmp_job_list;
};
-static inline is_leap_year (int year)
+static inline gboolean is_leap_year (int year)
{
return (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0 ));
}
@@ -111,7 +111,7 @@ gnc_gwen_date_to_time64 (const GNC_GWEN_DATE* date)
* that's the case then back up a day to get a real date for
* posting.
*/
- if (month == 2 && day <= 30 && day > is_leap_year(year) ? 29 : 28)
+ if (month == 2 && day <= 30 && day > (is_leap_year(year) ? 29 : 28))
--day;
return gnc_dmy2time64_neutral(day, month, year);
#else
Summary of changes:
gnucash/import-export/aqb/gnc-ab-utils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list