Fixing signedness in digest_to_string:glib/gchecksum.c

glib/gchecksum.c: In function ‘digest_to_string’:
glib/gchecksum.c:186:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘gsize’ {aka ‘long unsigned int’} [-Werror=sign-compare]
   for (i = 0; i < digest_len; i++)
                 ^
This commit is contained in:
Emmanuel Fleury 2019-01-26 16:41:09 +01:00
parent bfedf0f144
commit b8efd0df41

View File

@ -177,8 +177,7 @@ static gchar *
digest_to_string (guint8 *digest,
gsize digest_len)
{
gint len = digest_len * 2;
gint i;
gsize i, len = digest_len * 2;
gchar *retval;
retval = g_new (gchar, len + 1);