Skip to content

Commit 467b59c

Browse files
committed
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 #7638)
1 parent 17126b1 commit 467b59c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/if_ruby.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,11 +612,13 @@ rb_check_type_stub(VALUE obj, int t)
612612
{
613613
dll_rb_check_type(obj, t);
614614
}
615+
# if VIM_SIZEOF_INT < VIM_SIZEOF_LONG // 64 bits only
615616
unsigned long
616617
rb_num2uint_stub(VALUE x)
617618
{
618619
return dll_rb_num2uint(x);
619620
}
621+
# endif
620622
void
621623
ruby_malloc_size_overflow_stub(size_t x, size_t y)
622624
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2312,
753755
/**/
754756
2311,
755757
/**/

0 commit comments

Comments
 (0)