summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-06-20 08:28:34 -0700
committerMatthias Clasen <mclasen@redhat.com>2022-07-04 11:17:21 -0400
commit7c197e66c36ef8b57f86edb71ece959073be062f (patch)
treeb2d277e4123b0ad74732921801c09197f4470eea
parentfa511dadd9bfd3f328eedf25ed35bfe24416d0cf (diff)
downloadpango-7c197e66c36ef8b57f86edb71ece959073be062f.tar.gz
Make testattributes work on Windows
Using %p is not a good idea here, since its output is platform-dependent. Thankfully, its easily avoided.
-rw-r--r--tests/testattributes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testattributes.c b/tests/testattributes.c
index ef7eea20..1b1c8dac 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