From e82de625bdeacca91b306c67ba98344e7086a5c1 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 30 Mar 2022 20:05:43 +0200 Subject: Fixed changed that were missed in NetAddr --- NetEx/NetAddr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'NetEx') diff --git a/NetEx/NetAddr.h b/NetEx/NetAddr.h index b3d1c87..1b69c25 100644 --- a/NetEx/NetAddr.h +++ b/NetEx/NetAddr.h @@ -17,6 +17,7 @@ #ifdef _WIN32 #include #else +#include #include #endif @@ -41,7 +42,7 @@ public: std::uint8_t B1() const { return static_cast((addr & 0x000000ff) ); } std::uint16_t Port() const { return port; } - void SetPort(WORD p) { port = p; } + void SetPort(std::uint16_t p) { port = p; } sockaddr* GetSockAddr() const; size_t GetSockAddrLength() const; -- cgit v1.1