8196909: gcc 7.2.1 compiler warning in libdt_socket

Fixed warning

Reviewed-by: sspitsyn, clanger
This commit is contained in:
Chris Plummer 2018-02-15 09:22:25 -08:00
parent dc06e6553a
commit e2f49705aa

View File

@ -398,7 +398,7 @@ mask_s2u(const char *instr, uint32_t *mask) {
return instr;
}
*mask = htonl(-1 << (32 - m));
*mask = htonl((uint32_t)(~0) << (32 - m));
return s;
}