diff --git a/include/tpdate.hpp b/include/tpdate.hpp index b236da5..9a92776 100644 --- a/include/tpdate.hpp +++ b/include/tpdate.hpp @@ -275,7 +275,7 @@ class TwoPartDateUTC { /** @brief Transform a UTC date to a TT date */ TwoPartDate utc2tt() const noexcept; - + /** @brief Overload the '>' operator. */ bool operator>(const TwoPartDateUTC &d) const noexcept { return (_mjd > d._mjd) || ((_mjd == d._mjd) && (_fsec > d._fsec)); @@ -295,7 +295,7 @@ class TwoPartDateUTC { bool operator<=(const TwoPartDateUTC &d) const noexcept { return (_mjd < d._mjd) || ((_mjd == d._mjd) && (_fsec <= d._fsec)); } - + /** @brief Overload equality operator. */ bool operator==(const TwoPartDateUTC &d) const noexcept { return (_mjd == d._mjd) && (_fsec == d._fsec); diff --git a/test/sofa/epj_date.cpp b/test/sofa/epj_date.cpp index f9183f2..48c6b9b 100644 --- a/test/sofa/epj_date.cpp +++ b/test/sofa/epj_date.cpp @@ -50,8 +50,10 @@ int main() { TwoPartDate di = epj2tpd(je); assert(d.imjd() - di.imjd() == 0); #ifdef DEBUG - if (std::abs(d.seconds().seconds() - di.seconds().seconds()) > maxdiffs[0]) - maxdiffs[0] = std::abs(d.seconds().seconds() - di.seconds().seconds()); + if (std::abs(d.seconds().seconds() - di.seconds().seconds()) > + maxdiffs[0]) + maxdiffs[0] = + std::abs(d.seconds().seconds() - di.seconds().seconds()); avediffs[0] += std::abs(d.seconds().seconds() - di.seconds().seconds()); #endif epj_lib = je;