diff options
author | Mats Kindahl <mats@sun.com> | 2009-12-16 09:32:58 +0100 |
---|---|---|
committer | Mats Kindahl <mats@sun.com> | 2009-12-16 09:32:58 +0100 |
commit | 74577209ac292807550ee0c57f94a9db320941dc (patch) | |
tree | 543abb57d1d7a7448a0abbf2ff92c3e092cae57b /sql/rpl_utility.cc | |
parent | 9e980bf79ef0c727c630e79c1bc043c48bc947ee (diff) | |
download | mariadb-git-74577209ac292807550ee0c57f94a9db320941dc.tar.gz |
WL#5151: Conversion between different types when replicating
Fixes to get it to compile on MacOSX.
Diffstat (limited to 'sql/rpl_utility.cc')
-rw-r--r-- | sql/rpl_utility.cc | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/sql/rpl_utility.cc b/sql/rpl_utility.cc index 6d30a8bc99f..3a69c71b34c 100644 --- a/sql/rpl_utility.cc +++ b/sql/rpl_utility.cc @@ -19,18 +19,16 @@ #include "rpl_rli.h" /** - Template function to compare two objects. + Function to compare two size_t integers for their relative + order. Used below. */ -namespace { - template <class Type> - int compare(Type a, Type b) - { - if (a < b) - return -1; - if (b < a) - return 1; - return 0; - } +int compare(size_t a, size_t b) +{ + if (a < b) + return -1; + if (b < a) + return 1; + return 0; } |