mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-14 01:37:57 +08:00
Tweak to operator-(const weeknum& x, const weeknum& y)
This commit is contained in:
parent
906f5eb4f9
commit
862c7d43d6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user