mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 05:23:04 +01:00
Convert most remaining C-style casts to C++-style ones (#11867)
This commit is contained in:
committed by
GitHub
parent
7646f1b7e4
commit
9ef8d6da42
@@ -109,11 +109,11 @@ public:
|
||||
{
|
||||
if (_address.sa_family == AF_INET)
|
||||
{
|
||||
return ((sockaddr_in*)&_address)->sin_port;
|
||||
return reinterpret_cast<const sockaddr_in*>(&_address)->sin_port;
|
||||
}
|
||||
else
|
||||
{
|
||||
return ((sockaddr_in6*)&_address)->sin6_port;
|
||||
return reinterpret_cast<const sockaddr_in6*>(&_address)->sin6_port;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user