[glib: 8/9] Fix signedness warning in tests/onceinit.c




commit b419761189989cada2101c9c005e2e27aebdf223
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Fri Nov 20 21:25:28 2020 +0100

    Fix signedness warning in tests/onceinit.c
    
    tests/onceinit.c: In function ‘stress_concurrent_initializers’:
    tests/onceinit.c:267:17: error: comparison of integer expressions of different signedness: ‘int’ and 
‘long unsigned int’
      267 |   for (i = 0; i < G_N_ELEMENTS (initializers); i++)
          |                 ^

 tests/onceinit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/onceinit.c b/tests/onceinit.c
index 9788efcbd..4f30739ca 100644
--- a/tests/onceinit.c
+++ b/tests/onceinit.c
@@ -259,7 +259,7 @@ stress_concurrent_initializers (void *user_data)
     LIST_256_TEST_INITIALIZERS (stress3),
     LIST_256_TEST_INITIALIZERS (stress4),
   };
-  int i;
+  gsize i;
   /* sync to main thread */
   g_mutex_lock (&tmutex);
   g_mutex_unlock (&tmutex);


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