mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
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:
parent
69f7aa5747
commit
dd422a0588
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user