Commit dda5516e authored by Max Kellermann's avatar Max Kellermann

net/IPv6Address: pass reference to Cast()

parent adc5c5db
......@@ -124,7 +124,7 @@ public:
* Return a downcasted reference to the address. This call is
* only legal after verifying SocketAddress::GetFamily().
*/
static constexpr const IPv6Address &Cast(const SocketAddress src) noexcept {
static constexpr const IPv6Address &Cast(const SocketAddress &src) noexcept {
/* this reinterpret_cast works because this class is
just a wrapper for struct sockaddr_in6 */
return *(const IPv6Address *)(const void *)src.GetAddress();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment