diff --git a/ChangeLog b/ChangeLog index 4281df42bb..cbe6692b6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Mar 21 06:44:59 2008 Nobuyoshi Nakada + + * rational.c (nurat_to_f): C99. + Fri Mar 21 01:40:27 2008 Yusuke Endoh * complex.c (nucomp_sub, nucomp_expt): call corresponding functions. diff --git a/rational.c b/rational.c index 066a73d4bf..ccf214c32a 100644 --- a/rational.c +++ b/rational.c @@ -1102,12 +1102,12 @@ i_ilog2(VALUE x) static VALUE nurat_to_f(VALUE self) { - get_dat1(self); VALUE num, den; int minus = 0; long nl, dl, ml, ne, de; int e; double f; + get_dat1(self); if (f_zero_p(dat->num)) return rb_float_new(0.0);