summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/powerpc
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-07-31 11:50:20 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-07-31 14:41:02 +0200
commit9667c6a8cce1829a7321dde67bd0287c73234386 (patch)
treef3665957d557cb18728a40e75f7d9f2341aaff1d /src/devices/cpu/powerpc
parent69ac4affc86caac51ff9720083ed128dabdb932f (diff)
std::min and std:max instead of MIN and MAX, also some more macros converted to inline functions (nw)
Diffstat (limited to 'src/devices/cpu/powerpc')
-rw-r--r--src/devices/cpu/powerpc/ppccom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/powerpc/ppccom.cpp b/src/devices/cpu/powerpc/ppccom.cpp
index ce7249a6414..7611d6d0e25 100644
--- a/src/devices/cpu/powerpc/ppccom.cpp
+++ b/src/devices/cpu/powerpc/ppccom.cpp
@@ -409,7 +409,7 @@ inline void ppc_device::set_timebase(UINT64 newtb)
inline UINT32 ppc_device::get_decrementer()
{
INT64 cycles_until_zero = m_dec_zero_cycles - total_cycles();
- cycles_until_zero = MAX(cycles_until_zero, 0);
+ cycles_until_zero = std::max(cycles_until_zero, INT64(0));
if (!m_tb_divisor)
{