[pango/gir-fixes: 2/2] Trick g-ir-scanner some more
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/gir-fixes: 2/2] Trick g-ir-scanner some more
- Date: Tue, 16 Feb 2021 03:20:12 +0000 (UTC)
commit d7e338081c38c8d289c3b6c782b7681477a22d62
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Feb 15 22:17:06 2021 -0500
Trick g-ir-scanner some more
Add casts to get some defined constants to have
the right type in the gir. The games we play...
pango/pango-attributes.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h
index 025a6e2e..aecd1199 100644
--- a/pango/pango-attributes.h
+++ b/pango/pango-attributes.h
@@ -267,7 +267,7 @@ typedef enum {
*
* Since: 1.24
*/
-#define PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING 0
+#define PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING ((guint)0)
/**
* PANGO_ATTR_INDEX_TO_TEXT_END: (value 4294967295)
@@ -277,7 +277,7 @@ typedef enum {
*
* Since: 1.24
*/
-#define PANGO_ATTR_INDEX_TO_TEXT_END (G_MAXUINT + 0)
+#define PANGO_ATTR_INDEX_TO_TEXT_END ((guint)(G_MAXUINT + 0))
/**
* PangoAttribute:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]