Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xanthospap committed Oct 17, 2023
1 parent 984a974 commit 90f3e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dtcalendar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ class datetime {
m_mjd = modified_julian_day(days - 1 * (m_sec < S(0)));
m_sec = S((S::max_in_day - s) * (m_sec < S(0)) + s * (m_sec >= S(0)));
#ifdef DEBUG
assert(m_sec >= S(0) && m_sec < S::max_in_day);
assert(m_sec >= S(0) && m_sec < S(S::max_in_day));
#endif
}

Expand Down

0 comments on commit 90f3e6b

Please sign in to comment.