Skip to content

Commit

Permalink
cast to uin32
Browse files Browse the repository at this point in the history
  • Loading branch information
rumblefrog committed Oct 17, 2018
1 parent da6bf8e commit ccb494e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (c *Client) ParseMultiplePacketHeader(data []byte) (*MultiPacketHeader, err
header.ID = reader.ReadUint32()

// https://github.com/xPaw/PHP-Source-Query/blob/f713415696d61cdd36639124fa573406360d8219/SourceQuery/BaseSocket.php#L78
header.Compressed = (header.ID & 0x80000000) != 0
header.Compressed = (header.ID & uint32(0x80000000)) != 0

header.Total = reader.ReadUint8()

Expand Down

0 comments on commit ccb494e

Please sign in to comment.