Mercurial > vim
diff 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 |
line wrap: on
line diff
--- 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) {