[glib: 3/6] Fix signedness warning in gio/gfileattribute.c:escape_byte_string()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/6] Fix signedness warning in gio/gfileattribute.c:escape_byte_string()
- Date: Fri, 18 Dec 2020 21:59:58 +0000 (UTC)
commit 50c85523a2e89e1a491f81e719a88c477dffbdf8
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 21:29:44 2020 +0100
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++)
| ^
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";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]