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/field.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/field.cc')
-rw-r--r-- | sql/field.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/field.cc b/sql/field.cc index 477cdc0a993..1fa4b698e72 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -999,18 +999,19 @@ test_if_important_data(CHARSET_INFO *cs, const char *str, const char *strend) /** - Template function to compare two objects. + Function to compare two unsigned integers for their relative order. + Used below. In an anonymous namespace to not clash with definitions + in other files. */ namespace { - template <class A_type, class B_type> - int compare(A_type a, B_type b) + int compare(unsigned int a, unsigned int b) { if (a < b) return -1; if (b < a) return 1; return 0; - } +} } /** |