mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
Fixes rpcn_client.h func ptr comparison warning
This commit is contained in:
parent
2248007c9a
commit
ba727e13ae
1 changed files with 3 additions and 1 deletions
|
@ -402,7 +402,9 @@ namespace rpcn
|
|||
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue