[glib: 12/25] Fixing signedness in glib/gtestutils.c



commit 99d32c280257a8bcc75b1af683aff4f791cb61dc
Author: Emmanuel Fleury <emmanuel fleury u-bordeaux fr>
Date:   Mon Feb 4 10:36:11 2019 +0100

    Fixing signedness in glib/gtestutils.c
    
    glib/gtestutils.c: In function ‘g_test_build_filename_va’:
    glib/gtestutils.c:3865:49: error: comparison of integer expressions of different signedness: ‘gint’ {aka 
‘int’} and ‘long unsigned int’ [-Werror=sign-compare]
       for (num_path_segments = 2; num_path_segments < G_N_ELEMENTS (pathv); num_path_segments++)
                                                     ^

 glib/gtestutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gtestutils.c b/glib/gtestutils.c
index a63d136a0..edf5ba1b5 100644
--- a/glib/gtestutils.c
+++ b/glib/gtestutils.c
@@ -3829,7 +3829,7 @@ g_test_build_filename_va (GTestFileType  file_type,
                           va_list        ap)
 {
   const gchar *pathv[16];
-  gint num_path_segments;
+  gsize num_path_segments;
 
   if (file_type == G_TEST_DIST)
     pathv[0] = test_disted_files_dir;


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