From 84c07870e461ecd1761797304b4ee0aca5bb231e Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 26 Jul 2024 03:12:50 +0100 Subject: Rework MAX macro to use `<` operator MAX now works with Fraction's --- src/numerics.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/numerics.hpp b/src/numerics.hpp index 43b6c0b..f095368 100644 --- a/src/numerics.hpp +++ b/src/numerics.hpp @@ -24,7 +24,7 @@ #include #define MIN(A, B) ((A) < (B) ? (A) : (B)) -#define MAX(A, B) ((A) > (B) ? (A) : (B)) +#define MAX(A, B) ((B) < (A) ? (A) : (B)) typedef uint64_t word_t; struct Fraction -- cgit v1.2.3-13-gbd6f