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))
             ^~
This commit is contained in:
Emmanuel Fleury 2021-05-14 14:00:05 +02:00
parent a16d6398d7
commit 23e9017aff

View File

@ -546,7 +546,7 @@ g_winhttp_file_query_info (GFile *file,
NULL)) NULL))
{ {
gint64 cl; gint64 cl;
int n; size_t n;
const char *gint64_format = "%"G_GINT64_FORMAT"%n"; const char *gint64_format = "%"G_GINT64_FORMAT"%n";
wchar_t *gint64_format_w = g_utf8_to_utf16 (gint64_format, -1, NULL, NULL, NULL); wchar_t *gint64_format_w = g_utf8_to_utf16 (gint64_format, -1, NULL, NULL, NULL);