8196909: gcc 7.2.1 compiler warning in libdt_socket
Fixed warning Reviewed-by: sspitsyn, clanger
This commit is contained in:
parent
dc06e6553a
commit
e2f49705aa
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user