Skip to content

Commit

Permalink
patch 8.2.2312: build failure with Ruby 3.0 and 32 bits
Browse files Browse the repository at this point in the history
Problem:    Build failure with Ruby 3.0 and 32 bits.
Solution:   Add #ifdef. (closes #7638)
  • Loading branch information
brammool committed Jan 8, 2021
1 parent 17126b1 commit 467b59c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/if_ruby.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2312,
/**/
2311,
/**/
Expand Down

0 comments on commit 467b59c

Please sign in to comment.