changeset 23539:19d54961af72 v8.2.2312

patch 8.2.2312: build failure with Ruby 3.0 and 32 bits Commit: https://github.com/vim/vim/commit/467b59c2eb06f7fe6c2b5b677855cd422adbc45c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 8 19:31:39 2021 +0100 patch 8.2.2312: build failure with Ruby 3.0 and 32 bits Problem: Build failure with Ruby 3.0 and 32 bits. Solution: Add #ifdef. (closes https://github.com/vim/vim/issues/7638)
author Bram Moolenaar <Bram@vim.org>
date Fri, 08 Jan 2021 19:45:05 +0100
parents 531a9a48bc10
children f13918b6b8de
files src/if_ruby.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -612,11 +612,13 @@ rb_check_type_stub(VALUE obj, int t)
 {
     dll_rb_check_type(obj, t);
 }
+#   if VIM_SIZEOF_INT < VIM_SIZEOF_LONG // 64 bits only
     unsigned long
 rb_num2uint_stub(VALUE x)
 {
     return dll_rb_num2uint(x);
 }
+#   endif
     void
 ruby_malloc_size_overflow_stub(size_t x, size_t y)
 {
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2312,
+/**/
     2311,
 /**/
     2310,