Skip to content

Commit

Permalink
增加GetCrossedMonths支持
Browse files Browse the repository at this point in the history
  • Loading branch information
echo766 committed Dec 31, 2024
1 parent d1ffc8a commit 56b17a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llbc/src/core/time/Time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ int LLBC_Time::GetCrossedMonths(const LLBC_Time &from,
if (UNLIKELY(diff <= LLBC_TimeSpan::zero))
return 0;

if (UNLIKELY(timeOfMonth >= LLBC_TimeSpan::oneDay*31))
if (UNLIKELY(timeOfMonth >= LLBC_TimeSpan::oneDay * 31))
return 0;

const static auto preMonthMaxDays = [](int year, int month)
Expand Down

0 comments on commit 56b17a3

Please sign in to comment.