summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/emu/attotime.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/attotime.h b/src/emu/attotime.h
index 26f72175b12..eb9e1ee2915 100644
--- a/src/emu/attotime.h
+++ b/src/emu/attotime.h
@@ -353,12 +353,12 @@ inline attotime min(const attotime &left, const attotime &right)
inline attotime max(const attotime &left, const attotime &right)
{
if (left.seconds > right.seconds)
- return right;
- if (left.seconds < right.seconds)
return left;
- if (left.attoseconds > right.attoseconds)
+ if (left.seconds < right.seconds)
return right;
- return left;
+ if (left.attoseconds > right.attoseconds)
+ return left;
+ return right;
}