Remove compiler warning
Compiler treats literal '0' as int i.e. signed
This commit is contained in:
parent
843733567a
commit
741202ca76
@ -96,7 +96,7 @@ void Device::setIp4(quint32 address, int prefixLength, quint32 gateway)
|
|||||||
hasIp4_ = true;
|
hasIp4_ = true;
|
||||||
|
|
||||||
// Precalculate our mask 'n subnet to avoid doing so at pkt rx/tx time
|
// Precalculate our mask 'n subnet to avoid doing so at pkt rx/tx time
|
||||||
ip4Mask_ = ~0 << (32 - ip4PrefixLength_);
|
ip4Mask_ = ~0U << (32 - ip4PrefixLength_);
|
||||||
ip4Subnet_ = ip4_ & ip4Mask_;
|
ip4Subnet_ = ip4_ & ip4Mask_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user