From 90f3e6b07280a19cd4b601e092a58cd7a8b38950 Mon Sep 17 00:00:00 2001 From: xanthos Date: Tue, 17 Oct 2023 14:12:45 +0300 Subject: [PATCH] added tests --- src/dtcalendar.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dtcalendar.hpp b/src/dtcalendar.hpp index 3a43b5b..ea74249 100644 --- a/src/dtcalendar.hpp +++ b/src/dtcalendar.hpp @@ -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 }