From 099778a6da8f0f2b32648f6d9b34233230ac6517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Tue, 3 Dec 2019 11:30:11 +0900 Subject: internal/bingnum.h rework Turn macros into inline functions for better readability. Also add rb_int128t2big delcaration, which was missing. --- bignum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index 370c63c787..3923da7d0b 100644 --- a/bignum.c +++ b/bignum.c @@ -2996,7 +2996,7 @@ static VALUE bignew_1(VALUE klass, size_t len, int sign) { NEWOBJ_OF(big, struct RBignum, klass, T_BIGNUM | (RGENGC_WB_PROTECTED_BIGNUM ? FL_WB_PROTECTED : 0)); - BIGNUM_SET_SIGN(big, sign); + BIGNUM_SET_SIGN((VALUE)big, sign); if (len <= BIGNUM_EMBED_LEN_MAX) { RBASIC(big)->flags |= BIGNUM_EMBED_FLAG; BIGNUM_SET_LEN(big, len); -- cgit v1.2.3