Tweak to operator-(const weeknum& x, const weeknum& y)

This commit is contained in:
Howard Hinnant 2015-12-21 21:35:31 -05:00
parent 906f5eb4f9
commit 862c7d43d6

View File

@ -818,8 +818,8 @@ inline
weeks
operator-(const weeknum& x, const weeknum& y) NOEXCEPT
{
return weeks{static_cast<weeks::rep>(static_cast<unsigned>(x)
- static_cast<unsigned>(y))};
return weeks{static_cast<weeks::rep>(static_cast<unsigned>(x)) -
static_cast<weeks::rep>(static_cast<unsigned>(y))};
}
CONSTCD11