# HG changeset patch # User Bram Moolenaar # Date 1610131505 -3600 # Node ID 19d54961af7248f7c32d7ba411629ae75bcd744a # Parent 531a9a48bc1097c61f171f79405937c9445c64e1 patch 8.2.2312: build failure with Ruby 3.0 and 32 bits Commit: https://github.com/vim/vim/commit/467b59c2eb06f7fe6c2b5b677855cd422adbc45c Author: Bram Moolenaar 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) diff --git a/src/if_ruby.c b/src/if_ruby.c --- 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) { diff --git a/src/version.c b/src/version.c --- 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,