ruby-changes:42372
From: nobu <ko1@a...>
Date: Thu, 31 Mar 2016 12:02:54 +0900 (JST)
Subject: [ruby-changes:42372] nobu:r54446 (trunk): complex.c: pure declarations
nobu 2016-03-31 12:02:35 +0900 (Thu, 31 Mar 2016) New Revision: 54446 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54446 Log: complex.c: pure declarations * complex.c (get_dat1, get_dat2): turn into pure variable declarations only, not mixed code and declarations. Modified files: trunk/complex.c Index: complex.c =================================================================== --- complex.c (revision 54445) +++ complex.c (revision 54446) @@ -270,13 +270,10 @@ k_complex_p(VALUE x) https://github.com/ruby/ruby/blob/trunk/complex.c#L270 #define k_exact_zero_p(x) (k_exact_p(x) && f_zero_p(x)) #define get_dat1(x) \ - struct RComplex *dat;\ - dat = ((struct RComplex *)(x)) + struct RComplex *dat = RCOMPLEX(x) #define get_dat2(x,y) \ - struct RComplex *adat, *bdat;\ - adat = ((struct RComplex *)(x));\ - bdat = ((struct RComplex *)(y)) + struct RComplex *adat = RCOMPLEX(x), *bdat = RCOMPLEX(y) inline static VALUE nucomp_s_new_internal(VALUE klass, VALUE real, VALUE imag) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/