mirror of
https://github.com/holub/mame
synced 2025-05-12 09:08:53 +03:00
Fix attotime max() function to not be a copy of min(). Fixes several
regressions in the scheduler after the recent attotime object conversion.
This commit is contained in:
parent
beb05ca537
commit
173642d46c
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user