mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Netplay: Fix building on clang 17.
This commit is contained in:
@ -31,7 +31,7 @@ int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event)
|
||||
// wakeup packet received
|
||||
if (host->receivedDataLength == 1 && host->receivedData[0] == 0)
|
||||
{
|
||||
event->type = SKIPPABLE_EVENT;
|
||||
event->type = static_cast<ENetEventType>(SKIPPABLE_EVENT);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
@ -23,5 +23,5 @@ int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event);
|
||||
bool SendPacket(ENetPeer* socket, const sf::Packet& packet, u8 channel_id);
|
||||
|
||||
// used for traversal packets and wake-up packets
|
||||
constexpr ENetEventType SKIPPABLE_EVENT = ENetEventType(42);
|
||||
constexpr int SKIPPABLE_EVENT = 42;
|
||||
} // namespace Common::ENet
|
||||
|
@ -299,7 +299,7 @@ int ENET_CALLBACK TraversalClient::InterceptCallback(ENetHost* host, ENetEvent*
|
||||
&host->receivedAddress) ||
|
||||
(host->receivedDataLength == 1 && host->receivedData[0] == 0))
|
||||
{
|
||||
event->type = Common::ENet::SKIPPABLE_EVENT;
|
||||
event->type = static_cast<ENetEventType>(Common::ENet::SKIPPABLE_EVENT);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user