]> granicus.if.org Git - vim/commitdiff
patch 8.1.0871: build error when building with Ruby 2.6.0 v8.1.0871
authorBram Moolenaar <Bram@vim.org>
Sun, 3 Feb 2019 14:18:35 +0000 (15:18 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 3 Feb 2019 14:18:35 +0000 (15:18 +0100)
Problem:    Build error when building with Ruby 2.6.0.
Solution:   Change argument of rb_int2big_stub(). (Android Baumann,
            closes #3899)

src/if_ruby.c
src/version.c

index bf7aa1aae0a5159a70913745782580e2deeb4d12..24814a2326dbac3d210cf52645ac7eadf84329b7 100644 (file)
@@ -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);
 }
index 3e0dc7e9f3ec1fdbd54084e1e2d74f02c4c27cbb..3d24067e4052cd2643306b0c31e390d231cce0c1 100644 (file)
@@ -783,6 +783,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    871,
 /**/
     870,
 /**/