mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
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:
parent
bfedf0f144
commit
b8efd0df41
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user