summaryrefslogtreecommitdiff
path: root/libs/temporal/temporal
diff options
context:
space:
mode:
Diffstat (limited to 'libs/temporal/temporal')
-rw-r--r--libs/temporal/temporal/beats.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/temporal/temporal/beats.h b/libs/temporal/temporal/beats.h
index 3c92ac7561..e1790668d5 100644
--- a/libs/temporal/temporal/beats.h
+++ b/libs/temporal/temporal/beats.h
@@ -308,8 +308,7 @@ namespace std {
template<>
struct numeric_limits<Temporal::Beats> {
static Temporal::Beats lowest() {
- return Temporal::Beats(std::numeric_limits<int32_t>::min(),
- std::numeric_limits<int32_t>::min());
+ return Temporal::Beats(std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::min());
}
/* We don't define min() since this has different behaviour for integral and floating point types,
@@ -317,8 +316,7 @@ namespace std {
than a confusing one. */
static Temporal::Beats max() {
- return Temporal::Beats(std::numeric_limits<int32_t>::max(),
- std::numeric_limits<int32_t>::max());
+ return Temporal::Beats(std::numeric_limits<int32_t>::max(), Temporal::Beats::PPQN-1);
}
};
}