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:
Aaron Giles 2011-02-28 09:21:35 +00:00
parent beb05ca537
commit 173642d46c

View File

@ -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;
}