From 50c85523a2e89e1a491f81e719a88c477dffbdf8 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Mon, 16 Nov 2020 21:29:44 +0100 Subject: [PATCH] Fix signedness warning in gio/gfileattribute.c:escape_byte_string() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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++) | ^ --- gio/gfileattribute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/gfileattribute.c b/gio/gfileattribute.c index a38ac09d5..8075d1d53 100644 --- a/gio/gfileattribute.c +++ b/gio/gfileattribute.c @@ -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";