mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 04:15:49 +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 *
|
static char *
|
||||||
escape_byte_string (const char *str)
|
escape_byte_string (const char *str)
|
||||||
{
|
{
|
||||||
size_t len;
|
size_t i, len;
|
||||||
int num_invalid, i;
|
int num_invalid;
|
||||||
char *escaped_val, *p;
|
char *escaped_val, *p;
|
||||||
unsigned char c;
|
unsigned char c;
|
||||||
const char hex_digits[] = "0123456789abcdef";
|
const char hex_digits[] = "0123456789abcdef";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user