mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-09 18:54:04 +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;
|
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;
|
||||||
|
Reference in New Issue
Block a user