From 16fef01e27aa5da4e901fee8f84d878ae86c5720 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Mon, 24 May 2021 13:15:31 +0200 Subject: Made Min/Max functions constexpr --- zencore/include/zencore/intmath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zencore/include') diff --git a/zencore/include/zencore/intmath.h b/zencore/include/zencore/intmath.h index 9d39b8226..792b8b2b4 100644 --- a/zencore/include/zencore/intmath.h +++ b/zencore/include/zencore/intmath.h @@ -125,13 +125,13 @@ IsPointerAligned(const void* Ptr, uint64_t Alignment) # error "Looks like you did #include -- use instead" #endif -auto +constexpr auto Min(auto x, auto y) { return x < y ? x : y; } -auto +constexpr auto Max(auto x, auto y) { return x > y ? x : y; -- cgit v1.2.3