Fix werror warning about 0 being signed by default

This commit is contained in:
Srivats P 2023-03-08 18:09:34 +05:30
parent 425e4ef261
commit 620004d46b

View File

@ -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);
} }