You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vim/SOURCES/0002-Fix-build-error-when-b...

29 lines
697 B

From 1f8c90c2b7711707453faacd61eb9850a7470d5a Mon Sep 17 00:00:00 2001
From: Sergey Cherevko <s.cherevko@msvsphere.ru>
Date: Fri, 4 Aug 2023 18:22:47 +0300
Subject: [PATCH 2/3] Fix build error when building with Ruby 3.1.2
---
src/if_ruby.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 5905424..1497104 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -458,7 +458,11 @@ SIGNED_VALUE rb_num2long_stub(VALUE x)
{
return dll_rb_num2long(x);
}
+# if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26
+VALUE rb_int2big_stub(intptr_t x)
+# else
VALUE rb_int2big_stub(SIGNED_VALUE x)
+# endif
{
return dll_rb_int2big(x);
}
--
2.39.2