mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Fixing signedness in gdataset.c
glib/gdataset.c: In function ‘g_datalist_clear_i’: glib/gdataset.c:233:21: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint32’ {aka ‘unsigned int’} [-Werror=sign-compare] for (i = 0; i < data->len; i++) ^ glib/gdataset.c: In function ‘g_datalist_clear’: glib/gdataset.c:270:21: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint32’ {aka ‘unsigned int’} [-Werror=sign-compare] for (i = 0; i < data->len; i++) ^ glib/gdataset.c: In function ‘g_datalist_foreach’: glib/gdataset.c:1147:21: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint32’ {aka ‘unsigned int’} [-Werror=sign-compare] for (j = 0; j < d->len; j++) ^
This commit is contained in:
parent
5ca8c2fa8f
commit
bfedf0f144
@ -222,7 +222,7 @@ static void
|
|||||||
g_datalist_clear_i (GData **datalist)
|
g_datalist_clear_i (GData **datalist)
|
||||||
{
|
{
|
||||||
GData *data;
|
GData *data;
|
||||||
gint i;
|
guint i;
|
||||||
|
|
||||||
data = G_DATALIST_GET_POINTER (datalist);
|
data = G_DATALIST_GET_POINTER (datalist);
|
||||||
G_DATALIST_SET_POINTER (datalist, NULL);
|
G_DATALIST_SET_POINTER (datalist, NULL);
|
||||||
@ -254,7 +254,7 @@ void
|
|||||||
g_datalist_clear (GData **datalist)
|
g_datalist_clear (GData **datalist)
|
||||||
{
|
{
|
||||||
GData *data;
|
GData *data;
|
||||||
gint i;
|
guint i;
|
||||||
|
|
||||||
g_return_if_fail (datalist != NULL);
|
g_return_if_fail (datalist != NULL);
|
||||||
|
|
||||||
@ -1119,7 +1119,7 @@ g_datalist_foreach (GData **datalist,
|
|||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
GData *d;
|
GData *d;
|
||||||
int i, j, len;
|
guint i, j, len;
|
||||||
GQuark *keys;
|
GQuark *keys;
|
||||||
|
|
||||||
g_return_if_fail (datalist != NULL);
|
g_return_if_fail (datalist != NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user