mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
Fix signedness warning in gio/tests/socket.c
gio/tests/socket.c: In function ‘test_get_available’: gio/tests/socket.c:1696:53: error: comparison of integer expressions of different signedness: ‘gssize’ {aka ‘long int’} and ‘long unsigned int’ 1696 | if (g_socket_get_available_bytes (server) > sizeof (data)) | ^
This commit is contained in:
parent
5595b65476
commit
0a741d85a7
@ -1694,7 +1694,8 @@ test_get_available (gconstpointer user_data)
|
|||||||
|
|
||||||
for (tries = 0; tries < 100; tries++)
|
for (tries = 0; tries < 100; tries++)
|
||||||
{
|
{
|
||||||
if (g_socket_get_available_bytes (server) > sizeof (data))
|
gssize res = g_socket_get_available_bytes (server);
|
||||||
|
if ((res == -1) || ((gsize) res > sizeof (data)))
|
||||||
break;
|
break;
|
||||||
g_usleep (100000);
|
g_usleep (100000);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user