[pango/pango2: 161/178] Make testattributes work on Windows
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 161/178] Make testattributes work on Windows
- Date: Wed, 22 Jun 2022 20:10:18 +0000 (UTC)
commit f77193f413db941572240b2aa3341ff113b09e67
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]