From 47e2901e181e8d3da4fc9ba8365fa897348b83f1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 11 Apr 2009 20:26:25 +0000 Subject: (svn r16034) -Fix: compile warnings generated by 64 bits MSVC. --- src/network/core/address.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/network/core/address.h') diff --git a/src/network/core/address.h b/src/network/core/address.h index 564d23625..212164c9d 100644 --- a/src/network/core/address.h +++ b/src/network/core/address.h @@ -24,7 +24,7 @@ typedef SmallMap SocketList; class NetworkAddress { private: char hostname[NETWORK_HOSTNAME_LENGTH]; ///< The hostname - size_t address_length; ///< The length of the resolved address + int address_length; ///< The length of the resolved address sockaddr_storage address; ///< The resolved address /** @@ -49,7 +49,7 @@ public: * Create a network address based on a resolved IP and port * @param address the IP address with port */ - NetworkAddress(struct sockaddr_storage &address, size_t address_length) : + NetworkAddress(struct sockaddr_storage &address, int address_length) : address_length(address_length), address(address) { @@ -60,7 +60,7 @@ public: * Create a network address based on a resolved IP and port * @param address the IP address with port */ - NetworkAddress(sockaddr *address, size_t address_length) : + NetworkAddress(sockaddr *address, int address_length) : address_length(address_length) { *this->hostname = '\0'; @@ -131,7 +131,7 @@ public: * Get the (valid) length of the address. * @return the length */ - size_t GetAddressLength() + int GetAddressLength() { /* Resolve it if we didn't do it already */ if (!this->IsResolved()) this->GetAddress(); -- cgit v1.2.3-54-g00ecf