aboutsummaryrefslogtreecommitdiff
path: root/src/numerics.hpp
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-07-26 03:12:50 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-07-26 03:13:14 +0100
commit84c07870e461ecd1761797304b4ee0aca5bb231e (patch)
tree996cc5758629bfe3f4fe4a6ebe4d5fd56f5093db /src/numerics.hpp
parent7f7a609d30dbfc9c119bd4567b5ee9b47434fa66 (diff)
downloadcw_tree-84c07870e461ecd1761797304b4ee0aca5bb231e.tar.gz
cw_tree-84c07870e461ecd1761797304b4ee0aca5bb231e.tar.bz2
cw_tree-84c07870e461ecd1761797304b4ee0aca5bb231e.zip
Rework MAX macro to use `<` operator
MAX now works with Fraction's
Diffstat (limited to 'src/numerics.hpp')
-rw-r--r--src/numerics.hpp2
1 files changed, 1 insertions, 1 deletions
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 <vector>
#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