mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-27 04:13:30 +02: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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user