Fix signedness warning in gio/gfileattribute.c:escape_byte_string()

gio/gfileattribute.c: In function ‘escape_byte_string’:
gio/gfileattribute.c:286:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
  286 |   for (i = 0; i < len; i++)
      |                 ^
gio/gfileattribute.c:299:21: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
  299 |       for (i = 0; i < len; i++)
      |                     ^
This commit is contained in:
Emmanuel Fleury 2020-11-16 21:29:44 +01:00
parent c150e46bf0
commit 50c85523a2

View File

@ -274,8 +274,8 @@ valid_char (char c)
static char *
escape_byte_string (const char *str)
{
size_t len;
int num_invalid, i;
size_t i, len;
int num_invalid;
char *escaped_val, *p;
unsigned char c;
const char hex_digits[] = "0123456789abcdef";