mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02: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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user