changeset 15727:81db86aac412 v8.1.0871

patch 8.1.0871: build error when building with Ruby 2.6.0 commit https://github.com/vim/vim/commit/63d1fea8141c3dfb36aeb9de60e5f1f90450acff Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 3 15:18:35 2019 +0100 patch 8.1.0871: build error when building with Ruby 2.6.0 Problem: Build error when building with Ruby 2.6.0. Solution: Change argument of rb_int2big_stub(). (Android Baumann, closes #3899)
author Bram Moolenaar <Bram@vim.org>
date Sun, 03 Feb 2019 15:30:08 +0100
parents 79835b25bda7
children 479381bd1728
files src/if_ruby.c src/version.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }
--- a/src/version.c
+++ b/src/version.c
@@ -784,6 +784,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    871,
+/**/
     870,
 /**/
     869,