mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 17:26:17 +01:00
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:
parent
c150e46bf0
commit
50c85523a2
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user