mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-05 18:40:58 +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;
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user