diff --git a/Libraries/LibCore/Proxy.h b/Libraries/LibCore/Proxy.h index 4bc4d07892..7927127519 100644 --- a/Libraries/LibCore/Proxy.h +++ b/Libraries/LibCore/Proxy.h @@ -21,7 +21,7 @@ struct ProxyData { } type { Type::Direct }; IPv4Address host_ipv4; - int port { 0 }; + u16 port { 0 }; bool operator==(ProxyData const& other) const = default; diff --git a/Libraries/LibIPC/Decoder.cpp b/Libraries/LibIPC/Decoder.cpp index 86cfccd5a3..041dbc499e 100644 --- a/Libraries/LibIPC/Decoder.cpp +++ b/Libraries/LibIPC/Decoder.cpp @@ -178,7 +178,7 @@ ErrorOr decode(Decoder& decoder) { auto type = TRY(decoder.decode()); auto host_ipv4 = IPv4Address(TRY(decoder.decode())); - auto port = TRY(decoder.decode()); + auto port = TRY(decoder.decode()); return Core::ProxyData { type, host_ipv4, port }; }