summaryrefslogtreecommitdiffstats
path: root/util/generic/utility.h
diff options
context:
space:
mode:
authorskaarj <[email protected]>2022-02-10 16:52:08 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:52:08 +0300
commitc00899c2fb0e74f74e726dd4bd6915ff4d844055 (patch)
treec5a4697064da48eac1e3959b0a57362281c8596f /util/generic/utility.h
parentd3adae76593c2a6b659badc21bfa262bec99a298 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/generic/utility.h')
-rw-r--r--util/generic/utility.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/generic/utility.h b/util/generic/utility.h
index 43b98eeafc7..3618e0f4bfe 100644
--- a/util/generic/utility.h
+++ b/util/generic/utility.h
@@ -26,8 +26,8 @@ static constexpr const T& Max(const T& a, const T& b, const Args&... args) {
// replace with http://en.cppreference.com/w/cpp/algorithm/clamp in c++17
template <class T>
-constexpr const T& ClampVal(const T& val, const T& min, const T& max) {
- return val < min ? min : (max < val ? max : val);
+constexpr const T& ClampVal(const T& val, const T& min, const T& max) {
+ return val < min ? min : (max < val ? max : val);
}
template <typename T = double, typename... Args>