diff --git a/ChangeLog b/ChangeLog index 150ef43cc4..53e691b1c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Mar 31 06:57:14 2010 Tanaka Akira + + * time.c (timew2timespec): fix previous change. + Wed Mar 31 00:32:19 2010 Tanaka Akira * time.c (wdivmod): renamed from wdivmodv. fix neg/pos and pos/neg. diff --git a/time.c b/time.c index 966416ca0e..7217951fa3 100644 --- a/time.c +++ b/time.c @@ -1634,7 +1634,7 @@ timew2timespec(wideval_t timew) if (timew_out_of_timet_range(timew)) rb_raise(rb_eArgError, "time out of system range"); - split_second(timew, &timew, &subsecx); + split_second(timew, &timew2, &subsecx); ts.tv_sec = WV2TIMET(timew2); ts.tv_nsec = NUM2LONG(mulquo(subsecx, INT2FIX(1000000000), INT2FIX(TIME_SCALE))); return ts;