Fix some abs() errors from new clang and gcc versions.

This commit is contained in:
John Ralls 2015-04-28 09:41:05 -07:00
parent 405a26b6ac
commit 61021c4620
2 changed files with 2 additions and 2 deletions

View File

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

View File

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