[pango/pango2-color-palette: 15/71] Make testattributes work on Windows
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2-color-palette: 15/71] Make testattributes work on Windows
- Date: Tue, 5 Jul 2022 11:18:29 +0000 (UTC)
commit 7c197e66c36ef8b57f86edb71ece959073be062f
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]