mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 20:06:18 +01:00
Fix signedness warning in glib/gcharset.c
glib/gcharset.c:380:35: warning: comparison of integer expressions of different signedness: 'long long int' and 'long long unsigned int' else if (modifier - dot < sizeof (buf)) ^
This commit is contained in:
parent
33c2968669
commit
74c3c5b75d
@ -377,7 +377,7 @@ g_get_console_charset (const char **charset)
|
|||||||
modifier = strchr (dot, '@');
|
modifier = strchr (dot, '@');
|
||||||
if (modifier == NULL)
|
if (modifier == NULL)
|
||||||
raw = dot;
|
raw = dot;
|
||||||
else if (modifier - dot < sizeof (buf))
|
else if ((gsize) (modifier - dot) < sizeof (buf))
|
||||||
{
|
{
|
||||||
memcpy (buf, dot, modifier - dot);
|
memcpy (buf, dot, modifier - dot);
|
||||||
buf[modifier - dot] = '\0';
|
buf[modifier - dot] = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user