]> granicus.if.org Git - vim/commitdiff
patch 8.2.2312: build failure with Ruby 3.0 and 32 bits v8.2.2312
authorBram Moolenaar <Bram@vim.org>
Fri, 8 Jan 2021 18:31:39 +0000 (19:31 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 8 Jan 2021 18:31:39 +0000 (19:31 +0100)
Problem:    Build failure with Ruby 3.0 and 32 bits.
Solution:   Add #ifdef. (closes #7638)

src/if_ruby.c
src/version.c

index 9e58902141cdaf639ed26ad401b9086fbb7b145f..a8c8379b62d8d362bab5657a9949cf597751fa2c 100644 (file)
@@ -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)
 {
index c79b2197011c228baff578d900dc31f46b119689..96046509630f701c6fa713580183328ee7559072 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2312,
 /**/
     2311,
 /**/