Merge branch 'gfileutils_signedness' into 'master'

Fixing signedness warning in glib/gfileutils.c

See merge request GNOME/glib!1632
This commit is contained in:
Sebastian Dröge 2020-08-27 16:50:37 +00:00
commit 151e171207

View File

@ -1157,7 +1157,7 @@ write_to_file (const gchar *contents,
{ {
gssize s; gssize s;
s = write (fd, contents, length); s = write (fd, contents, MIN (length, G_MAXSSIZE));
if (s < 0) if (s < 0)
{ {
@ -1173,7 +1173,7 @@ write_to_file (const gchar *contents,
return FALSE; return FALSE;
} }
g_assert (s <= length); g_assert ((gsize) s <= length);
contents += s; contents += s;
length -= s; length -= s;