Commit b8efd0df authored by Emmanuel Fleury's avatar Emmanuel Fleury

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++)
                 ^
parent bfedf0f1
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment