File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -107,13 +107,16 @@ int main() {
107107 intrvl.unsigned_total_sec (); /* total nsec in interval */
108108 const auto rndd = d1 + intrvl;
109109
110- assert (std::abs (rndd.diff <DateTimeDifferenceType::FractionalDays>(d1) -
111- to_fractional_days (isec) * intrvl.sign ()) <=
112- FDAY_PRECISION);
110+ assert (
111+ std::abs (
112+ rndd.diff <DateTimeDifferenceType::FractionalDays>(d1).seconds () -
113+ to_fractional_days (isec).seconds () * intrvl.sign ()) <=
114+ FDAY_PRECISION);
113115
114116 /* better than nsec precision */
115- assert (std::abs (rndd.diff <DateTimeDifferenceType::FractionalSeconds>(d1) -
116- to_fractional_seconds (isec) * intrvl.sign ()) <
117+ assert (std::abs (rndd.diff <DateTimeDifferenceType::FractionalSeconds>(d1)
118+ .seconds () -
119+ to_fractional_seconds (isec).seconds () * intrvl.sign ()) <
117120 SEC_PRECISION);
118121
119122 ++testnr;
You can’t perform that action at this time.
0 commit comments