mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
Merge branch 'gfileutils_signedness' into 'master'
Fixing signedness warning in glib/gfileutils.c See merge request GNOME/glib!1632
This commit is contained in:
commit
151e171207
@ -1157,7 +1157,7 @@ write_to_file (const gchar *contents,
|
||||
{
|
||||
gssize s;
|
||||
|
||||
s = write (fd, contents, length);
|
||||
s = write (fd, contents, MIN (length, G_MAXSSIZE));
|
||||
|
||||
if (s < 0)
|
||||
{
|
||||
@ -1173,7 +1173,7 @@ write_to_file (const gchar *contents,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
g_assert (s <= length);
|
||||
g_assert ((gsize) s <= length);
|
||||
|
||||
contents += s;
|
||||
length -= s;
|
||||
|
Loading…
Reference in New Issue
Block a user