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 4a4de23d8a
commit 1056b8d170

View File

@ -209,7 +209,7 @@ void DeviceGroupDialog::updateTotalDeviceCount()
void DeviceGroupDialog::updateIp4Gateway()
{
quint32 net = ip4Address->value() & (~0 << (32 - ip4PrefixLength->value()));
quint32 net = ip4Address->value() & (~0UL << (32 - ip4PrefixLength->value()));
ip4Gateway->setValue(net | 0x01);
}