Fix werror warning about 0 being signed by default
This commit is contained in:
parent
4a4de23d8a
commit
1056b8d170
@ -209,7 +209,7 @@ void DeviceGroupDialog::updateTotalDeviceCount()
|
|||||||
|
|
||||||
void DeviceGroupDialog::updateIp4Gateway()
|
void DeviceGroupDialog::updateIp4Gateway()
|
||||||
{
|
{
|
||||||
quint32 net = ip4Address->value() & (~0 << (32 - ip4PrefixLength->value()));
|
quint32 net = ip4Address->value() & (~0UL << (32 - ip4PrefixLength->value()));
|
||||||
ip4Gateway->setValue(net | 0x01);
|
ip4Gateway->setValue(net | 0x01);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user