From 136105e353904ab748e6ab364dd4949189e62c6a Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Tue, 15 May 2018 11:22:52 -0700 Subject: [PATCH] fix: wrong list index type in file_dialog_gtk.cc (#12952) --- atom/browser/ui/file_dialog_gtk.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/ui/file_dialog_gtk.cc b/atom/browser/ui/file_dialog_gtk.cc index c6bb5cc1cc04..b712f6a78c47 100644 --- a/atom/browser/ui/file_dialog_gtk.cc +++ b/atom/browser/ui/file_dialog_gtk.cc @@ -210,7 +210,7 @@ base::FilePath FileChooserDialog::AddExtensionForFilename( return path; GSList* filters = gtk_file_chooser_list_filters(GTK_FILE_CHOOSER(dialog_)); - int i = g_slist_index(filters, selected_filter); + size_t i = g_slist_index(filters, selected_filter); g_slist_free(filters); if (i >= filters_.size()) return path;