mirror of https://github.com/RPCS3/rpcs3.git
Fixes rpcn_client.h func ptr comparison warning
This commit is contained in:
parent
2248007c9a
commit
ba727e13ae
|
@ -402,7 +402,9 @@ namespace rpcn
|
||||||
|
|
||||||
bool operator<(const message_cb_t& other) const
|
bool operator<(const message_cb_t& other) const
|
||||||
{
|
{
|
||||||
return (cb_func < other.cb_func) || ((!(other.cb_func < cb_func)) && (cb_param < other.cb_param));
|
const void* void_cb_func = reinterpret_cast<const void*>(cb_func);
|
||||||
|
const void* void_other_cb_func = reinterpret_cast<const void*>(other.cb_func);
|
||||||
|
return (void_cb_func < void_other_cb_func) || ((!(void_other_cb_func < void_cb_func)) && (cb_param < other.cb_param));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
shared_mutex mutex_messages;
|
shared_mutex mutex_messages;
|
||||||
|
|
Loading…
Reference in New Issue