summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dcp_time.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/dcp_time.cc b/src/dcp_time.cc
index d397d9d7..50946f4c 100644
--- a/src/dcp_time.cc
+++ b/src/dcp_time.cc
@@ -208,11 +208,7 @@ dcp::operator< (Time const & a, Time const & b)
return a.s < b.s;
}
- if ((a.e * b.tcr) != (b.e * a.tcr)) {
- return (a.e * b.tcr) < (b.e * a.tcr);
- }
-
- return true;
+ return (a.e * b.tcr) < (b.e * a.tcr);
}
bool
@@ -230,11 +226,7 @@ dcp::operator> (Time const & a, Time const & b)
return a.s > b.s;
}
- if ((a.e * b.tcr) != (b.e * a.tcr)) {
- return (a.e * b.tcr) > (b.e * a.tcr);
- }
-
- return true;
+ return (a.e * b.tcr) > (b.e * a.tcr);
}
ostream &