Fix signedness warning in glib/tests/markup-collect.c

glib/gtestutils.h:134:96: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘GMarkupError’
  134 |                                                if (!err || (err)->domain != dom || (err)->code != c) \
      |                                                                                                ^~
glib/tests/markup-collect.c:168:7: note: in expansion of macro ‘g_assert_error’
  168 |       g_assert_error (error, G_MARKUP_ERROR, test->error_code);
      |       ^~~~~~~~~~~~~~
This commit is contained in:
Emmanuel Fleury 2020-11-08 21:20:57 +01:00
parent 93dd614562
commit 6c74ab7fcc

View File

@ -165,7 +165,7 @@ test_collect (gconstpointer d)
}
else
{
g_assert_error (error, G_MARKUP_ERROR, test->error_code);
g_assert_error (error, G_MARKUP_ERROR, (gint) test->error_code);
}
g_markup_parse_context_free (ctx);