summaryrefslogtreecommitdiff
path: root/internal/rational.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rational.h')
-rw-r--r--internal/rational.h2
1 files changed, 1 insertions, 1 deletions
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);