mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-15 04:05:11 +01:00
Fix comparison of unsigned expression < 0 is always false warning in glib/gunicollate.c
glib/gunicollate.c:444:17: warning: comparison of unsigned expression < 0 is always false if (xfrm_len < 0 || xfrm_len >= G_MAXINT - 2) ~~~~~~~~ ^ ~
This commit is contained in:
parent
601ef3b6be
commit
6d8caf6482
@ -441,7 +441,7 @@ g_utf8_collate_key (const gchar *str,
|
|||||||
if (str_locale)
|
if (str_locale)
|
||||||
{
|
{
|
||||||
xfrm_len = strxfrm (NULL, str_locale, 0);
|
xfrm_len = strxfrm (NULL, str_locale, 0);
|
||||||
if (xfrm_len < 0 || xfrm_len >= G_MAXINT - 2)
|
if (xfrm_len >= G_MAXINT - 2)
|
||||||
{
|
{
|
||||||
g_free (str_locale);
|
g_free (str_locale);
|
||||||
str_locale = NULL;
|
str_locale = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user