diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-08 19:31:39 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-08 19:31:39 +0100 |
commit | 467b59c2eb06f7fe6c2b5b677855cd422adbc45c (patch) | |
tree | 2d362297dfdec654e504c1003dd71bdc05d4e0a7 /src/if_ruby.c | |
parent | 17126b13969c3b91516a8e9ff80fb6a1f6924d40 (diff) | |
download | vim-git-467b59c2eb06f7fe6c2b5b677855cd422adbc45c.tar.gz |
patch 8.2.2312: build failure with Ruby 3.0 and 32 bitsv8.2.2312
Problem: Build failure with Ruby 3.0 and 32 bits.
Solution: Add #ifdef. (closes #7638)
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r-- | src/if_ruby.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c index 9e5890214..a8c8379b6 100644 --- 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) { |