Correct integer type used for times

Some functions used guint instead of gint64. This commit corrects them all.
This commit is contained in:
Markus Koch 2017-07-09 19:56:01 +02:00
parent 756e8fa4fd
commit eeb9d87cc3

View File

@ -53,7 +53,7 @@ static gboolean mainWindow_list_entry_visible(GtkTreeModel *model,
gboolean search_matched = 0; gboolean search_matched = 0;
GDateTime *datetime; GDateTime *datetime;
guint time; gint64 time;
if (mainWindow->filterSettings.hide_all) if (mainWindow->filterSettings.hide_all)
return FALSE; return FALSE;
@ -126,8 +126,8 @@ static gint mainWindow_sort_date_compare_func(GtkTreeModel *model,
{ {
GDateTime *datetime1; GDateTime *datetime1;
GDateTime *datetime2; GDateTime *datetime2;
guint time1; gint64 time1;
guint time2; gint64 time2;
gtk_tree_model_get(model, a, COL_TIMESTAMP, &datetime1, -1); gtk_tree_model_get(model, a, COL_TIMESTAMP, &datetime1, -1);
gtk_tree_model_get(model, b, COL_TIMESTAMP, &datetime2, -1); gtk_tree_model_get(model, b, COL_TIMESTAMP, &datetime2, -1);