mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
WL#5151: Conversion between different types when replicating
Fixes to get it to compile on MacOSX.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user