mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-28 19:53:58 -06:00
Fix some abs() errors from new clang and gcc versions.
This commit is contained in:
parent
405a26b6ac
commit
61021c4620
@ -585,7 +585,7 @@ gnc_dense_cal_set_num_months(GncDenseCal *dcal, guint num_months)
|
||||
gint months_val, delta_months;
|
||||
|
||||
gtk_tree_model_get(GTK_TREE_MODEL(options), &view_opts_iter, VIEW_OPTS_COLUMN_NUM_MONTHS, &months_val, -1);
|
||||
delta_months = abs(months_val - num_months);
|
||||
delta_months = abs(months_val - (int)num_months);
|
||||
if (delta_months < closest_index_distance)
|
||||
{
|
||||
iter_closest_to_req = view_opts_iter;
|
||||
|
@ -643,7 +643,7 @@ static void split_find_match (GNCImportTransInfo * trans_info,
|
||||
/* Date heuristics */
|
||||
match_time = xaccTransGetDate (xaccSplitGetParent (split));
|
||||
download_time = xaccTransGetDate (new_trans);
|
||||
datediff_day = abs(match_time - download_time) / 86400;
|
||||
datediff_day = llabs(match_time - download_time) / 86400;
|
||||
/* Sorry, there are not really functions around at all that
|
||||
provide for less hacky calculation of days of date
|
||||
differences. Whatever. On the other hand, the difference
|
||||
|
Loading…
Reference in New Issue
Block a user