summaryrefslogtreecommitdiff
path: root/internal/bignum.h
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-07-22 14:44:25 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-08-27 15:03:36 +0900
commitcd1d6d90299d727ad4a87c42f3ba09c87df2bce3 (patch)
treef0d1c0cd85db7296a28824f1758bf7344e8881af /internal/bignum.h
parent442525527e2fa052e6d8752adffeaa0855b75ff7 (diff)
include/ruby/backward/2/r_cast.h: deprecate
Remove all usages of RCAST() so that the header file can be excluded from ruby/ruby.h's dependency.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3346
Diffstat (limited to 'internal/bignum.h')
-rw-r--r--internal/bignum.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/bignum.h b/internal/bignum.h
index c7b9b324d7..95c1e6eacd 100644
--- a/internal/bignum.h
+++ b/internal/bignum.h
@@ -74,7 +74,7 @@
# define PRIXBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"X"
#endif
-#define RBIGNUM(obj) (R_CAST(RBignum)(obj))
+#define RBIGNUM(obj) ((struct RBignum *)(obj))
#define BIGNUM_SIGN_BIT FL_USER1
#define BIGNUM_EMBED_FLAG ((VALUE)FL_USER2)
#define BIGNUM_EMBED_LEN_NUMBITS 3