From 4a3bc13554799b4cb3bdb6b2b6e8e61266c28e14 Mon Sep 17 00:00:00 2001 From: couriersud Date: Fri, 10 Jul 2020 18:42:32 +0200 Subject: netlist: fix signedness warnings in ptime.h --- src/lib/netlist/plib/ptime.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/netlist/plib/ptime.h b/src/lib/netlist/plib/ptime.h index 9bbd1e35671..0f88449500b 100644 --- a/src/lib/netlist/plib/ptime.h +++ b/src/lib/netlist/plib/ptime.h @@ -207,10 +207,10 @@ namespace plib static constexpr ptime never() noexcept { return ptime(plib::numeric_limits::max(), RES); } static constexpr internal_type resolution() noexcept { return RES; } - constexpr internal_type in_nsec() const noexcept { return m_time / (RES / UINT64_C(1000000000)); } - constexpr internal_type in_usec() const noexcept { return m_time / (RES / UINT64_C( 1000000)); } - constexpr internal_type in_msec() const noexcept { return m_time / (RES / UINT64_C( 1000)); } - constexpr internal_type in_sec() const noexcept { return m_time / (RES / UINT64_C( 1)); } + constexpr internal_type in_nsec() const noexcept { return m_time / (RES / INT64_C(1000000000)); } + constexpr internal_type in_usec() const noexcept { return m_time / (RES / INT64_C( 1000000)); } + constexpr internal_type in_msec() const noexcept { return m_time / (RES / INT64_C( 1000)); } + constexpr internal_type in_sec() const noexcept { return m_time / (RES / INT64_C( 1)); } private: template -- cgit v1.2.3