[ruby/date] Fix mixed declarations and code
This still support ruby 2.6 which does not require C99. https://github.com/ruby/date/commit/61d849758f
This commit is contained in:
parent
b910de641b
commit
43dd9c721f
@ -8954,9 +8954,10 @@ date_to_time(VALUE self)
|
|||||||
get_d1a(self);
|
get_d1a(self);
|
||||||
|
|
||||||
if (m_julian_p(adat)) {
|
if (m_julian_p(adat)) {
|
||||||
self = d_lite_gregorian(self);
|
VALUE g = d_lite_gregorian(self);
|
||||||
get_d1b(self);
|
get_d1b(g);
|
||||||
adat = bdat;
|
adat = bdat;
|
||||||
|
self = g;
|
||||||
}
|
}
|
||||||
|
|
||||||
t = f_local3(rb_cTime,
|
t = f_local3(rb_cTime,
|
||||||
@ -9034,9 +9035,10 @@ datetime_to_time(VALUE self)
|
|||||||
get_d1(self);
|
get_d1(self);
|
||||||
|
|
||||||
if (m_julian_p(dat)) {
|
if (m_julian_p(dat)) {
|
||||||
self = d_lite_gregorian(self);
|
VALUE g = d_lite_gregorian(self);
|
||||||
get_d1a(self);
|
get_d1a(g);
|
||||||
dat = adat;
|
dat = adat;
|
||||||
|
self = g;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user