mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 18:36:17 +01: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:
parent
e257e17d2e
commit
3c4ff30c0f
@ -428,7 +428,7 @@ g_utf8_collate_key (const gchar *str,
|
|||||||
if (g_get_charset (&charset))
|
if (g_get_charset (&charset))
|
||||||
{
|
{
|
||||||
xfrm_len = strxfrm (NULL, str_norm, 0);
|
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);
|
result = g_malloc (xfrm_len + 1);
|
||||||
strxfrm (result, str_norm, xfrm_len + 1);
|
strxfrm (result, str_norm, xfrm_len + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user