changeset 48979:93996c47d36f

8196909: gcc 7.2.1 compiler warning in libdt_socket Summary: fixed warning Reviewed-by: sspitsyn, clanger
author cjplummer
date Thu, 15 Feb 2018 09:22:25 -0800
parents 083e6c55a28c
children 514c73a1955b
files src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }