summaryrefslogtreecommitdiff
path: root/dev-ruby/ruby-ldap/files/ruby-ldap-0.9.20-clang16-fix.patch
blob: 580584c619943f5366cbf1b44975f61add2e2367 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Bug: https://bugs.gentoo.org/884405
--- a/ldap.c
+++ b/ldap.c
@@ -201,7 +201,7 @@ rb_ldap_hash2mods (VALUE self, VALUE op, VALUE hash)
   VALUE tmp;
 
   tmp = rb_assoc_new (op, rb_ary_new ());
-  rb_iterate (rb_each, hash, rb_ldap_hash2mods_i, tmp);
+  rb_iterate (rb_each, hash, (rb_block_call_func_t)rb_ldap_hash2mods_i, tmp);
 
   return rb_ary_entry (tmp, 1);
 }