From 8608eccf9a9ab05d4c25c4b1ee8f558d8fe2ff72 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Thu, 19 Nov 2020 20:24:18 +0100 Subject: [PATCH] Fix signedness warning in gio/tests/file.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gio/tests/file.c: In function ‘written_cb’: gio/tests/file.c:358:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘size_t’ {aka ‘long unsigned int’} 358 | if (data->pos < strlen (data->data)) | ^ --- gio/tests/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/file.c b/gio/tests/file.c index 7f5ee8e78..7e99601fa 100644 --- a/gio/tests/file.c +++ b/gio/tests/file.c @@ -174,7 +174,7 @@ typedef struct gint monitor_deleted; gint monitor_changed; gchar *monitor_path; - gint pos; + gsize pos; const gchar *data; gchar *buffer; guint timeout;