summaryrefslogtreecommitdiffstats
path: root/src/util/math.h
diff options
context:
space:
mode:
authorOwen Williams <owilliams@mixxx.org>2014-05-31 00:40:17 -0400
committerOwen Williams <owilliams@mixxx.org>2014-05-31 00:40:17 -0400
commitd71048c4e56a7cc4c9c8b4fb4602f57f227deb8c (patch)
tree62d62dd63257d38609c94fa1aba2c885a9c4d469 /src/util/math.h
parentb0177d103adea46a9ced4c145f32069f4fc4b598 (diff)
Fix broken seek when playhead is past a loop when the loop is enabled.
Diffstat (limited to 'src/util/math.h')
-rw-r--r--src/util/math.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/math.h b/src/util/math.h
index eda1f24883..7a580fdf43 100644
--- a/src/util/math.h
+++ b/src/util/math.h
@@ -17,6 +17,7 @@ using std::fabs;
template <typename T>
inline T math_clamp(const T& value, const T& min, const T& max) {
+ // XXX: If max < min, behavior is undefined.
if (value > max) {
return max;
}