changeset 7851:0711b2e05d80 draft

(svn r11401) -Fix [FS#1391]: make all min functions do exactly the same instead of branching on either < or <=.
author rubidium <rubidium@openttd.org>
date Sat, 10 Nov 2007 23:22:32 +0000
parents 37236521c91a
children 5d435ea53ec5
files src/macros.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/macros.h
+++ b/src/macros.h
@@ -120,7 +120,7 @@
  */
 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 uint minu(const uint a, const uint b)
 {
-	return a <= b ? a : b;
+	return a < b ? a : b;
 }
 
 /**