net/packet: remove unnecessary mark

There's no need to mask out the bottom four bits
of b[0] if we are about to shift them away.
pull/933/head
Josh Bleecher Snyder 4 years ago committed by Josh Bleecher Snyder
parent efad55cf86
commit b0526e8284

@ -111,7 +111,7 @@ func (q *Parsed) Decode(b []byte) {
return return
} }
q.IPVersion = (b[0] & 0xF0) >> 4 q.IPVersion = b[0] >> 4
switch q.IPVersion { switch q.IPVersion {
case 4: case 4:
q.decode4(b) q.decode4(b)

Loading…
Cancel
Save