gio/tests/win32-streams: Avoid doing sign casting when we can

the offset can be just an unsigned parameter so that we don't have to cast
the sizeof (DATA) result.
This commit is contained in:
Marco Trevisan (Treviño) 2022-10-31 11:59:39 +01:00
parent 69f7aa5747
commit dd422a0588

View File

@ -40,7 +40,8 @@ static gpointer
writer_thread (gpointer user_data)
{
GOutputStream *out;
gssize nwrote, offset;
gssize nwrote;
size_t offset;
GError *err = NULL;
HANDLE out_handle;
@ -58,7 +59,7 @@ writer_thread (gpointer user_data)
g_usleep (10);
offset = 0;
while (offset < (gssize) sizeof (DATA))
while (offset < sizeof (DATA))
{
nwrote = g_output_stream_write (out, DATA + offset,
sizeof (DATA) - offset,