1
0
Fork 0

(svn r11401) -Fix [FS#1391]: make all min functions do exactly the same instead of branching on either < or <=.

release/0.6
rubidium 2007-11-10 23:22:32 +00:00
parent 3a8cdc37ce
commit 2e44d2aedb
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ template<typename T> static inline T min(const T a, const T b)
*/
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 int b)
*/
static inline uint minu(const uint a, const uint b)
{
return a <= b ? a : b;
return a < b ? a : b;
}
/**