From b37002cf7f30eb9d1afb0b9dd7585659217971d7 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Thu, 28 Dec 2023 23:39:07 +0100 Subject: [PATCH] Compatibility with Ruby 2.0 --- src/rba/rba/rba.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rba/rba/rba.cc b/src/rba/rba/rba.cc index f4aa28ab3..c453bfc65 100644 --- a/src/rba/rba/rba.cc +++ b/src/rba/rba/rba.cc @@ -1085,7 +1085,7 @@ push_args (gsi::SerialArgs &arglist, const gsi::MethodBase *meth, VALUE *argv, i // check if there are any left-over keyword parameters with unknown names std::set invalid_names; - rb_hash_foreach (kwargs, &get_kwargs_keys, reinterpret_cast (&invalid_names)); + rb_hash_foreach (kwargs, (int (*)(...)) &get_kwargs_keys, (VALUE) &invalid_names); for (gsi::MethodBase::argument_iterator a = meth->begin_arguments (); a != meth->end_arguments (); ++a) { invalid_names.erase (a->spec ()->name ());