[gucharmap] build: Fix warning about incompatible pointer return type



commit 1067817fa0b3ded1c099740036d43bf2142ec4c7
Author: Ingo Brückl <ib wupperonline de>
Date:   Wed Aug 26 19:57:06 2020 +0200

    build: Fix warning about incompatible pointer return type

 gucharmap/gucharmap-chartable-accessible.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gucharmap/gucharmap-chartable-accessible.c b/gucharmap/gucharmap-chartable-accessible.c
index ecb95761..85517b74 100644
--- a/gucharmap/gucharmap-chartable-accessible.c
+++ b/gucharmap/gucharmap-chartable-accessible.c
@@ -124,7 +124,10 @@ gucharmap_chartable_accessible_ref_child (AtkObject *obj,
       GucharmapChartableCellAccessible *cell = g_ptr_array_index (cells, n);
 
       if (index == cell->index)
-        return g_object_ref (cell);
+        {
+          g_object_ref (cell);
+          return ATK_OBJECT (cell);
+        }
     }
 
   /* Not cached, create a new cell accessible */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]