diff options
Diffstat (limited to 'internal/complex.h')
-rw-r--r-- | internal/complex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/complex.h b/internal/complex.h index dc1053823d..6f63a9ebeb 100644 --- a/internal/complex.h +++ b/internal/complex.h @@ -17,7 +17,7 @@ struct RComplex { VALUE imag; }; -#define RCOMPLEX(obj) (R_CAST(RComplex)(obj)) +#define RCOMPLEX(obj) ((struct RComplex *)(obj)) /* shortcut macro for internal only */ #define RCOMPLEX_SET_REAL(cmp, r) RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->real, (r)) |