[glib: 4/5] Fix a signedness problem in glib/tests/date.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/5] Fix a signedness problem in glib/tests/date.c
- Date: Mon, 14 Sep 2020 08:30:53 +0000 (UTC)
commit 16773d27027ab29fde2a50467174bbff60d8ac76
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Thu Sep 10 18:35:20 2020 +0200
Fix a signedness problem in glib/tests/date.c
glib/tests/date.c:778:17: error: comparison of integer expressions of
different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’
778 | for (i = 0; i < G_N_ELEMENTS (check_years); i++)
| ^
glib/tests/date.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/date.c b/glib/tests/date.c
index 92f0a7f6e..e49ec3419 100644
--- a/glib/tests/date.c
+++ b/glib/tests/date.c
@@ -737,7 +737,7 @@ int
main (int argc, char** argv)
{
gchar *path;
- gint i;
+ gsize i;
/* Try to get all the leap year cases. */
int check_years[] = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]