summaryrefslogtreecommitdiffstats
path: root/src/if_ruby.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-02-03 15:18:35 +0100
committerBram Moolenaar <Bram@vim.org>2019-02-03 15:18:35 +0100
commit63d1fea8141c3dfb36aeb9de60e5f1f90450acff (patch)
treea35bd3041108e56e4c7d4e79a9c09e9a746c92bd /src/if_ruby.c
parentaa5df7e3127dff6b7336df0903f5c569a40eb174 (diff)
patch 8.1.0871: build error when building with Ruby 2.6.0v8.1.0871
Problem: Build error when building with Ruby 2.6.0. Solution: Change argument of rb_int2big_stub(). (Android Baumann, closes #3899)
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r--src/if_ruby.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c
index bf7aa1aae0..24814a2326 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -506,7 +506,11 @@ SIGNED_VALUE rb_num2long_stub(VALUE x)
{
return dll_rb_num2long(x);
}
+# if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26
+VALUE rb_int2big_stub(intptr_t x)
+# else
VALUE rb_int2big_stub(SIGNED_VALUE x)
+# endif
{
return dll_rb_int2big(x);
}