diff --git a/base/include/util/misc_math.h b/base/include/util/misc_math.h index 4181964de..6efc32e29 100644 --- a/base/include/util/misc_math.h +++ b/base/include/util/misc_math.h @@ -16,11 +16,11 @@ namespace Genode { - template - T max(T v1, T v2) { return v1 > v2 ? v1 : v2; } + template + T1 max(T1 v1, T2 v2) { return v1 > v2 ? v1 : v2; } - template - T min(T v1, T v2) { return v1 < v2 ? v1 : v2; } + template + T1 min(T1 v1, T2 v2) { return v1 < v2 ? v1 : v2; } template T abs(T value) { return value >= 0 ? value : -value; }