mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
WL#5151: Conversion between different types when replicating
Fixes to get it to compile on MacOSX.
This commit is contained in:
@ -999,11 +999,12 @@ 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;
|
||||
|
@ -19,11 +19,10 @@
|
||||
#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)
|
||||
int compare(size_t a, size_t b)
|
||||
{
|
||||
if (a < b)
|
||||
return -1;
|
||||
@ -31,7 +30,6 @@ namespace {
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user