[pango/gi-docs] Trick g-ir-scanner some more



commit e1924cc36de6d4d433d0e3786efb4b14bfb9d10f
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 3013d379..5ef7a132 100644
--- a/pango/pango-attributes.h
+++ b/pango/pango-attributes.h
@@ -268,7 +268,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)
@@ -279,7 +279,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]