summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emu/attotime.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/attotime.h b/src/emu/attotime.h
index e056ee90034..2b625459386 100644
--- a/src/emu/attotime.h
+++ b/src/emu/attotime.h
@@ -180,7 +180,7 @@ public:
//**************************************************************************
/** handle addition between two attotimes */
-inline attotime operator+(const attotime &left, const attotime &right) noexcept
+inline constexpr attotime operator+(const attotime &left, const attotime &right) noexcept
{
attotime result;
@@ -230,7 +230,7 @@ inline attotime &attotime::operator+=(const attotime &right) noexcept
/** handle subtraction between two attotimes */
-inline attotime operator-(const attotime &left, const attotime &right) noexcept
+inline constexpr attotime operator-(const attotime &left, const attotime &right) noexcept
{
attotime result;