mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 05:28:41 +02:00
Cast buffer ptr before bitwise op
This commit is contained in:
parent
da480bcaf0
commit
3d523552f8
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ void Socket::readPendingDatagrams() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if this was a control packet or a data packet
|
// check if this was a control packet or a data packet
|
||||||
bool isControlPacket = *buffer & CONTROL_BIT_MASK;
|
bool isControlPacket = *reinterpret_cast<uint32_t*>(buffer.get()) & CONTROL_BIT_MASK;
|
||||||
|
|
||||||
if (isControlPacket) {
|
if (isControlPacket) {
|
||||||
// setup a control packet from the data we just read
|
// setup a control packet from the data we just read
|
||||||
|
|
Loading…
Reference in a new issue