Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update argc type from size_t to int
There was some rework in Ruby around ANYARGS and it now doesn't compile with Ruby 2.7.8 and 3.2.2 on macOS due to signature mismatch. Under Linux this is only a warning: /usr/local/include/ruby-3.2.0/ruby/internal/anyargs.h:308:143: warning: passing argument 3 of ‘rb_define_singleton_method_m1’ from incompatible pointer type [-Wincompatible-pointer-types] 308 | #define rb_define_singleton_method(obj, mid, func, arity) RBIMPL_ANYARGS_DISPATCH_rb_define_singleton_method((arity), (func))((obj), (mid), (func), (arity)) | ^~~~~~ | | | VALUE (*)(size_t, VALUE *, VALUE) {aka long unsigned int (*)(long unsigned int, long unsigned int *, long unsigned int)}
- Loading branch information