mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
[min/max] Don't forward argument
This commit is contained in:
1 parent
7a219ca9f0
commit
c9e843942e
1 file changed
+2
-2
+2
-2
@@ -552,14 +552,14 @@ struct
|
||||
{
|
||||
template <typename T, typename T2> constexpr auto
|
||||
operator () (T&& a, T2&& b) const HB_AUTO_RETURN
|
||||
(a <= b ? std::forward<T> (a) : std::forward<T2> (b))
|
||||
(a <= b ? a : b)
|
||||
}
|
||||
HB_FUNCOBJ (hb_min);
|
||||
struct
|
||||
{
|
||||
template <typename T, typename T2> constexpr auto
|
||||
operator () (T&& a, T2&& b) const HB_AUTO_RETURN
|
||||
(a >= b ? std::forward<T> (a) : std::forward<T2> (b))
|
||||
(a >= b ? a : b)
|
||||
}
|
||||
HB_FUNCOBJ (hb_max);
|
||||
struct
|
||||
|
||||
Reference in new issue
Block a user