From cd1d6d90299d727ad4a87c42f3ba09c87df2bce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Wed, 22 Jul 2020 14:44:25 +0900 Subject: 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. --- internal/rational.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/rational.h') diff --git a/internal/rational.h b/internal/rational.h index 99c5eec8cb..18efd7bd5e 100644 --- a/internal/rational.h +++ b/internal/rational.h @@ -21,7 +21,7 @@ struct RRational { VALUE den; }; -#define RRATIONAL(obj) (R_CAST(RRational)(obj)) +#define RRATIONAL(obj) ((struct RRational *)(obj)) /* rational.c */ VALUE rb_rational_canonicalize(VALUE x); -- cgit v1.2.3