Blame gobject-introspection-3.0.8-int32.patch

2758090
commit 0a284e3d2b0b8a8e1671d1333155456d4bb27fca
2758090
Author: Kouhei Sutou <kou@clear-code.com>
2758090
Date:   Wed May 4 16:25:23 2016 +0900
2758090
2758090
    gi: fix a bug that int32[] returns wrong values
2758090
    
2758090
    GitHub: fix #758
2758090
    
2758090
    Reported by Mamoru TASAKA. Thanks!!!
2758090
2758090
diff --git a/gobject-introspection/ext/gobject-introspection/rb-gi-argument.c b/gobject-introspection/ext/gobject-introspection/rb-gi-argument.c
2758090
index 319df93..69da8fb 100644
2758090
--- a/gobject-introspection/ext/gobject-introspection/rb-gi-argument.c
2758090
+++ b/gobject-introspection/ext/gobject-introspection/rb-gi-argument.c
2758090
@@ -191,7 +191,7 @@ array_c_to_ruby_sized(gconstpointer *elements,
2758090
     case GI_TYPE_TAG_INT32:
2758090
         g_base_info_unref(element_type_info);
2758090
         {
2758090
-            const gint8 *numbers = (const gint8 *)elements;
2758090
+            const gint32 *numbers = (const gint32 *)elements;
2758090
             for (i = 0; i < n_elements; i++) {
2758090
                 rb_ary_push(rb_array, INT2NUM(numbers[i]));
2758090
             }