Mercurial > vim
comparison src/if_ruby.c @ 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 | bb0c53f4ef8b |
children | 51a5c5f08bdd |
comparison
equal
deleted
inserted
replaced
23538:531a9a48bc10 | 23539:19d54961af72 |
---|---|
610 void | 610 void |
611 rb_check_type_stub(VALUE obj, int t) | 611 rb_check_type_stub(VALUE obj, int t) |
612 { | 612 { |
613 dll_rb_check_type(obj, t); | 613 dll_rb_check_type(obj, t); |
614 } | 614 } |
615 # if VIM_SIZEOF_INT < VIM_SIZEOF_LONG // 64 bits only | |
615 unsigned long | 616 unsigned long |
616 rb_num2uint_stub(VALUE x) | 617 rb_num2uint_stub(VALUE x) |
617 { | 618 { |
618 return dll_rb_num2uint(x); | 619 return dll_rb_num2uint(x); |
619 } | 620 } |
621 # endif | |
620 void | 622 void |
621 ruby_malloc_size_overflow_stub(size_t x, size_t y) | 623 ruby_malloc_size_overflow_stub(size_t x, size_t y) |
622 { | 624 { |
623 dll_ruby_malloc_size_overflow(x, y); | 625 dll_ruby_malloc_size_overflow(x, y); |
624 } | 626 } |