Changeset - r7851:d007f368444a
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-11-10 23:22:32
rubidium@openttd.org
(svn r11401) -Fix [FS#1391]: make all min functions do exactly the same instead of branching on either < or <=.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/macros.h
Show inline comments
 
@@ -120,7 +120,7 @@ template<typename T> 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;
 
}
 

	
 
/**
0 comments (0 inline, 0 general)