We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b910de6 commit 43dd9c7Copy full SHA for 43dd9c7
ext/date/date_core.c
@@ -8954,9 +8954,10 @@ date_to_time(VALUE self)
8954
get_d1a(self);
8955
8956
if (m_julian_p(adat)) {
8957
- self = d_lite_gregorian(self);
8958
- get_d1b(self);
+ VALUE g = d_lite_gregorian(self);
+ get_d1b(g);
8959
adat = bdat;
8960
+ self = g;
8961
}
8962
8963
t = f_local3(rb_cTime,
@@ -9034,9 +9035,10 @@ datetime_to_time(VALUE self)
9034
9035
get_d1(self);
9036
9037
if (m_julian_p(dat)) {
9038
- get_d1a(self);
9039
+ get_d1a(g);
9040
dat = adat;
9041
9042
9043
9044
{
0 commit comments