diff options
author | Emmanuel Fleury <emmanuel.fleury@gmail.com> | 2020-11-18 19:33:51 +0100 |
---|---|---|
committer | Emmanuel Fleury <emmanuel.fleury@gmail.com> | 2021-02-16 13:32:26 +0100 |
commit | e939550cad84e61af0da5775fb5ce062ceb6433e (patch) | |
tree | 21a5f5b6ba2ee05df1a872937489043bf97657c3 /gio/gdummyfile.c | |
parent | 18097c8acb4452d201dfe7ef27395a48c5810c0a (diff) | |
download | glib-e939550cad84e61af0da5775fb5ce062ceb6433e.tar.gz |
Fix signedness warning in gio/gdummyfile.c
gio/gdummyfile.c: In function ‘unescape_string’:
gio/gdummyfile.c:485:32: error: comparison of integer expressions of different signedness: ‘long int’ and ‘size_t’ {aka ‘long unsigned int’}
485 | g_warn_if_fail (out - result <= strlen (escaped_string));
| ^~
Diffstat (limited to 'gio/gdummyfile.c')
-rw-r--r-- | gio/gdummyfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gdummyfile.c b/gio/gdummyfile.c index cd4acd021..58442ccbc 100644 --- a/gio/gdummyfile.c +++ b/gio/gdummyfile.c @@ -482,7 +482,7 @@ unescape_string (const gchar *escaped_string, } *out = '\0'; - g_warn_if_fail (out - result <= strlen (escaped_string)); + g_warn_if_fail ((gsize) (out - result) <= strlen (escaped_string)); return result; } |