8196909: gcc 7.2.1 compiler warning in libdt_socket
authorcjplummer
Thu, 15 Feb 2018 09:22:25 -0800
changeset 48978 93996c47d36f
parent 48977 083e6c55a28c
child 48979 514c73a1955b
8196909: gcc 7.2.1 compiler warning in libdt_socket Summary: fixed warning Reviewed-by: sspitsyn, clanger
src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c
--- a/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c	Thu Feb 15 16:16:17 2018 +0100
+++ b/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c	Thu Feb 15 09:22:25 2018 -0800
@@ -398,7 +398,7 @@
        return instr;
     }
 
-    *mask = htonl(-1 << (32 - m));
+    *mask = htonl((uint32_t)(~0) << (32 - m));
     return s;
 }