[glib: 6/8] Fix signedness warning in gio/win32/gwinhttpfile.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 6/8] Fix signedness warning in gio/win32/gwinhttpfile.c
- Date: Wed, 20 Oct 2021 15:30:51 +0000 (UTC)
commit 23e9017afffab2f13cf0540efc688f4079464a77
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Fri May 14 14:00:05 2021 +0200
Fix signedness warning in gio/win32/gwinhttpfile.c
gio/win32/gwinhttpfile.c: In function 'g_winhttp_file_query_info':
gio/win32/gwinhttpfile.c:554:13: warning: comparison of integer expressions of different signedness:
'int' and 'size_t' {aka 'long long unsigned int'}
n == wcslen (content_length))
^~
gio/win32/gwinhttpfile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/win32/gwinhttpfile.c b/gio/win32/gwinhttpfile.c
index 5b8dcfe0b..e73c87658 100644
--- a/gio/win32/gwinhttpfile.c
+++ b/gio/win32/gwinhttpfile.c
@@ -546,7 +546,7 @@ g_winhttp_file_query_info (GFile *file,
NULL))
{
gint64 cl;
- int n;
+ size_t n;
const char *gint64_format = "%"G_GINT64_FORMAT"%n";
wchar_t *gint64_format_w = g_utf8_to_utf16 (gint64_format, -1, NULL, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]