diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | internal.h | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue May 3 23:13:16 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org> + + * internal.h (RCOMPLEX_SET_IMAG): undef RCOMPLEX_SET_IMAG + instead of duplicated undef RCOMPLEX_SET_REAL. + Tue May 3 22:55:07 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org> * complex.c (rb_complex_set_imag): Fix to properly set imag diff --git a/internal.h b/internal.h index 765758a962..9bf07baad6 100644 --- a/internal.h +++ b/internal.h @@ -554,7 +554,7 @@ struct RComplex { #ifdef RCOMPLEX_SET_REAL /* shortcut macro for internal only */ #undef RCOMPLEX_SET_REAL -#undef RCOMPLEX_SET_REAL +#undef RCOMPLEX_SET_IMAG #define RCOMPLEX_SET_REAL(cmp, r) RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->real,(r)) #define RCOMPLEX_SET_IMAG(cmp, i) RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->imag,(i)) #endif |