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;