# HG changeset patch # User rubidium # Date 2007-11-10 23:22:32 # Node ID d007f368444a66d6973a7aac22d391ea01460fde # Parent b34df612437835df3f1dada8b47f7937bdbd7aa7 (svn r11401) -Fix [FS#1391]: make all min functions do exactly the same instead of branching on either < or <=. diff --git a/src/macros.h b/src/macros.h --- a/src/macros.h +++ b/src/macros.h @@ -120,7 +120,7 @@ template static inline T min */ static inline int min(const int a, const int b) { - return a <= b ? a : b; + return a < b ? a : b; } /** @@ -134,7 +134,7 @@ static inline int min(const int a, const */ static inline uint minu(const uint a, const uint b) { - return a <= b ? a : b; + return a < b ? a : b; } /**