6679422: networkStream::connect() in ostream.cpp is not 64-bit clean
authorjcoomes
Fri, 28 Mar 2008 23:35:42 -0700
changeset 253 cc8062372007
parent 252 050143a0dbfb
child 254 717d75d80a30
child 336 53887b25f9ae
6679422: networkStream::connect() in ostream.cpp is not 64-bit clean Reviewed-by: jmasa, xlu
hotspot/src/share/vm/utilities/ostream.cpp
--- a/hotspot/src/share/vm/utilities/ostream.cpp	Fri Mar 28 23:35:42 2008 -0700
+++ b/hotspot/src/share/vm/utilities/ostream.cpp	Fri Mar 28 23:35:42 2008 -0700
@@ -829,7 +829,7 @@
   server.sin_port = htons(port);
 
   server.sin_addr.s_addr = inet_addr(ip);
-  if (server.sin_addr.s_addr == (unsigned long)-1) {
+  if (server.sin_addr.s_addr == (uint32_t)-1) {
 #ifdef _WINDOWS
     struct hostent* host = hpi::get_host_by_name((char*)ip);
 #else