[glib: 2/11] Fix redefinition of local variable in glib/tests/strfuncs.c




commit 22b7182d2a9360e9d5c95c10b1e3e915c2fc5c7b
Author: Loic Le Page <llepage fluendo com>
Date:   Wed Jan 19 18:53:30 2022 +0100

    Fix redefinition of local variable in glib/tests/strfuncs.c

 glib/tests/strfuncs.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/glib/tests/strfuncs.c b/glib/tests/strfuncs.c
index ab93f8602..082eec074 100644
--- a/glib/tests/strfuncs.c
+++ b/glib/tests/strfuncs.c
@@ -2440,15 +2440,14 @@ test_ascii_string_to_number_usual (void)
 
         case UNSIGNED:
           {
-            guint64 value64 = 0;
             result = g_ascii_string_to_unsigned (data->str,
                                                  data->base,
                                                  data->min,
                                                  data->max,
-                                                 &value64,
+                                                 &valueu64,
                                                  &error);
-            value = value64;
-            g_assert_cmpint (value, ==, value64);
+            value = valueu64;
+            g_assert_cmpint (value, ==, valueu64);
             break;
           }
 


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