From 74577209ac292807550ee0c57f94a9db320941dc Mon Sep 17 00:00:00 2001 From: Mats Kindahl Date: Wed, 16 Dec 2009 09:32:58 +0100 Subject: WL#5151: Conversion between different types when replicating Fixes to get it to compile on MacOSX. --- sql/rpl_utility.cc | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'sql/rpl_utility.cc') 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 - 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; } -- cgit v1.2.1