mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-05 00:43:40 +02: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:
@@ -441,7 +441,7 @@ g_utf8_collate_key (const gchar *str,
|
||||
if (str_locale)
|
||||
{
|
||||
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);
|
||||
str_locale = NULL;
|
||||
|
Reference in New Issue
Block a user