Fix signedness warning in glib/tests/fileutils.c

glib/gtestutils.h:134:96: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘GFileError’
  134 |                                                if (!err || (err)->domain != dom || (err)->code != c) \
      |                                                                                                ^~
glib/tests/fileutils.c:1072:15: note: in expansion of macro ‘g_assert_error’
 1072 |               g_assert_error (error, G_FILE_ERROR, tests[i].expected_error);
      |               ^~~~~~~~~~~~~~
This commit is contained in:
Emmanuel Fleury 2020-09-11 18:48:03 +02:00
parent 019c6746db
commit dfa4907072

View File

@ -976,7 +976,7 @@ test_set_contents_full (void)
gboolean use_strlen;
gboolean expected_success;
GFileError expected_error;
gint expected_error;
}
tests[] =
{