[pango/pango2: 290/301] Make testattributes work on Windows
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 290/301] Make testattributes work on Windows
- Date: Wed, 22 Jun 2022 15:53:44 +0000 (UTC)
commit b97b2bdf54f2362a4e6f87911ac2ce24f6dcccb7
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]