forked from HowardHinnant/date
Silence a few warnings on VS.
This commit is contained in:
17
tz.cpp
17
tz.cpp
@@ -161,8 +161,9 @@ MonthDayTime::day() const
|
|||||||
return date::day{31};
|
return date::day{31};
|
||||||
case lteq:
|
case lteq:
|
||||||
case gteq:
|
case gteq:
|
||||||
return u.month_day_weekday_.month_day_.day();
|
break;
|
||||||
}
|
}
|
||||||
|
return u.month_day_weekday_.month_day_.day();
|
||||||
}
|
}
|
||||||
|
|
||||||
date::month
|
date::month
|
||||||
@@ -176,8 +177,9 @@ MonthDayTime::month() const
|
|||||||
return u.month_weekday_last_.month();
|
return u.month_weekday_last_.month();
|
||||||
case lteq:
|
case lteq:
|
||||||
case gteq:
|
case gteq:
|
||||||
return u.month_day_weekday_.month_day_.month();
|
break;
|
||||||
}
|
}
|
||||||
|
return u.month_day_weekday_.month_day_.month();
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@@ -276,13 +278,12 @@ MonthDayTime::to_day_point(date::year y) const
|
|||||||
return day_point(x) - (wd1-wd0);
|
return day_point(x) - (wd1-wd0);
|
||||||
}
|
}
|
||||||
case gteq:
|
case gteq:
|
||||||
{
|
break;
|
||||||
auto const x = y/u.month_day_weekday_.month_day_;
|
|
||||||
auto const wd1 = u.month_day_weekday_.weekday_;
|
|
||||||
auto const wd0 = weekday(x);
|
|
||||||
return day_point(x) + (wd1-wd0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
auto const x = y/u.month_day_weekday_.month_day_;
|
||||||
|
auto const wd1 = u.month_day_weekday_.weekday_;
|
||||||
|
auto const wd0 = weekday(x);
|
||||||
|
return day_point(x) + (wd1-wd0);
|
||||||
}
|
}
|
||||||
|
|
||||||
seconds_point
|
seconds_point
|
||||||
|
Reference in New Issue
Block a user