[glib: 1/2] Fix a warning reported by static analyzer tool



commit cbde0460188272caaa457a7eed14b90ce8463d19
Author: Gaurav <ya1gaurav gmail com>
Date:   Thu Jun 7 13:45:55 2018 +0000

    Fix a warning reported by static analyzer tool

 gio/thumbnail-verify.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/thumbnail-verify.c b/gio/thumbnail-verify.c
index 44fde6bc7..1a722e40c 100644
--- a/gio/thumbnail-verify.c
+++ b/gio/thumbnail-verify.c
@@ -232,7 +232,7 @@ thumbnail_verify (const char     *thumbnail_path,
     return FALSE;
 
   expected_info.uri = file_uri;
-  expected_info.mtime = file_stat_buf->st_mtime;
+  expected_info.mtime = (guint64) file_stat_buf->st_mtime;
   expected_info.size = file_stat_buf->st_size;
 
   file = g_mapped_file_new (thumbnail_path, FALSE, NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]