[pango/pango2: 16/25] Make testattributes work on Windows




commit ea07ca337613ebd47758be11df9592aa88fae0c3
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 20 08:28:34 2022 -0700

    Make testattributes work on Windows
    
    Using %p is not a good idea here, since its output
    is platform-dependent. Thankfully, its easily avoided.

 tests/testattributes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/testattributes.c b/tests/testattributes.c
index ef7eea200..1b1c8dacb 100644
--- a/tests/testattributes.c
+++ b/tests/testattributes.c
@@ -113,7 +113,7 @@ my_attribute_data_equal (gconstpointer data1,
 static char *
 my_attribute_data_serialize (gconstpointer data)
 {
-  return g_strdup_printf ("%p", data);
+  return g_strdup_printf ("%#x", GPOINTER_TO_UINT (data));
 }
 
 static void


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