summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/ptime.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/plib/ptime.h')
-rw-r--r--src/lib/netlist/plib/ptime.h8
1 files 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<internal_type>::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 <typename FT>