fix: wrong list index type in file_dialog_gtk.cc (#12952)

This commit is contained in:
Jeremy Apthorp 2018-05-15 11:22:52 -07:00 committed by Charles Kerr
parent 0fb6dc79d8
commit 136105e353

View file

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