* IPAddress.cs: handle sign extension for the high byte when using the
byte[] ctor for an IPv4 address.
Fixes bug #467472.
svn path=/branches/mono-2-2/mcs/; revision=123857
+2009-01-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * IPAddress.cs: handle sign extension for the high byte when using the
+ byte[] ctor for an IPv4 address.
+ Fixes bug #467472.
+
2009-01-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
* FtpWebRequest.cs: adjust to the correct directory when listing too.
m_Family = AddressFamily.InterNetworkV6;
m_ScopeId = 0;
} else {
- m_Address = (address [3] << 24) + (address [2] << 16) +
+ m_Address = ((uint) address [3] << 24) + (address [2] << 16) +
(address [1] << 8) + address [0];
}
}