summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-11-10 23:22:32 +0000
committerrubidium <rubidium@openttd.org>2007-11-10 23:22:32 +0000
commit2e44d2aedbaeef2410e28e93f691c1deb5a3db78 (patch)
tree5e4d0b5e5272e5d1efc8c372b810eb49f2d600cd /src
parent3a8cdc37ce0bcf1f5c735d53dc5dbd613a11701a (diff)
downloadopenttd-2e44d2aedbaeef2410e28e93f691c1deb5a3db78.tar.xz
(svn r11401) -Fix [FS#1391]: make all min functions do exactly the same instead of branching on either < or <=.
Diffstat (limited to 'src')
-rw-r--r--src/macros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macros.h b/src/macros.h
index 004e4039d..95af44123 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -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;
}
/**