mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-13 20:47:46 +02:00
gunicollate: Remove tautological comparison
As an unsigned integer, this variable is always greater than or equal to zero. Fixes a compiler warning on Android. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -428,7 +428,7 @@ g_utf8_collate_key (const gchar *str,
|
||||
if (g_get_charset (&charset))
|
||||
{
|
||||
xfrm_len = strxfrm (NULL, str_norm, 0);
|
||||
if (xfrm_len >= 0 && xfrm_len < G_MAXINT - 2)
|
||||
if (xfrm_len < G_MAXINT - 2)
|
||||
{
|
||||
result = g_malloc (xfrm_len + 1);
|
||||
strxfrm (result, str_norm, xfrm_len + 1);
|
||||
|
Reference in New Issue
Block a user