From fbaa416cfbc408f8e76ea28d8dbfa6281df03c30 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Thu, 7 Apr 2022 16:02:27 -0700 Subject: [PATCH] Fix gcc compilation errors. --- gnucash/import-export/aqb/gnc-ab-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnucash/import-export/aqb/gnc-ab-utils.c b/gnucash/import-export/aqb/gnc-ab-utils.c index d0804cffc5..9707746b98 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